diff --git a/config/nvim/lua/core/plugin_config/init.lua b/config/nvim/lua/core/plugin_config/init.lua index eb35f111..3e557dda 100644 --- a/config/nvim/lua/core/plugin_config/init.lua +++ b/config/nvim/lua/core/plugin_config/init.lua @@ -7,7 +7,6 @@ require("core.plugin_config.cmp_config") require("core.plugin_config.autopairs") require("core.plugin_config.gitsigns") require("core.plugin_config.precense") -require("core.plugin_config.null_ls") require("core.plugin_config.colorscheme") require("core.plugin_config.liveserver") require("core.plugin_config.color-picker") diff --git a/config/nvim/lua/core/plugin_config/null_ls.lua b/config/nvim/lua/core/plugin_config/null_ls.lua deleted file mode 100644 index f9fb49b6..00000000 --- a/config/nvim/lua/core/plugin_config/null_ls.lua +++ /dev/null @@ -1,29 +0,0 @@ -local null_ls = require("null-ls") - -local formatting = null_ls.builtins.formatting -local diagnostics = null_ls.builtins.diagnostics - -local augroup = vim.api.nvim_create_augroup("LspFormatting", {}) - -null_ls.setup({ - sources = { - formatting.prettier, - formatting.stylua, - formatting.csharpier, - formatting.alejandra, - formatting.black, - diagnostics.cpplint, - }, - on_attach = function(client, bufnr) - if client.supports_method("textDocument/formatting") then - vim.api.nvim_clear_autocmds({ group = augroup, buffer = bufnr }) - vim.api.nvim_create_autocmd("BufWritePre", { - group = augroup, - buffer = bufnr, - callback = function() - vim.lsp.buf.format({ buffer }) - end, - }) - end - end, -}) diff --git a/config/nvim/lua/core/plugins.lua b/config/nvim/lua/core/plugins.lua index f27d93a6..6c40e2cc 100644 --- a/config/nvim/lua/core/plugins.lua +++ b/config/nvim/lua/core/plugins.lua @@ -59,10 +59,6 @@ local plugins = { -- git stuff lol "lewis6991/gitsigns.nvim", - -- linting - "jose-elias-alvarez/null-ls.nvim", - "jayp0521/mason-null-ls.nvim", - -- flex "andweeb/presence.nvim",