From 09004f4517eba8f57d37897e34f6ba56ad3653f1 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 1 Nov 2023 06:42:48 -0400 Subject: stop using neovim.nix i had small, but annoying issues here and i don't care for lazy loading much tbh --- plugins/null-ls.lua | 50 -------------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 plugins/null-ls.lua (limited to 'plugins/null-ls.lua') diff --git a/plugins/null-ls.lua b/plugins/null-ls.lua deleted file mode 100644 index a2a71f1..0000000 --- a/plugins/null-ls.lua +++ /dev/null @@ -1,50 +0,0 @@ -return function() - local null_ls = require("null-ls") - local diagnostics = null_ls.builtins.diagnostics - local formatting = null_ls.builtins.formatting - - local lsp_formatting = function(bufnr) - vim.lsp.buf.format({ - filter = function(client) - return client.name == "null-ls" - end, - bufnr = bufnr, - }) - end - - local augroup = vim.api.nvim_create_augroup("LspFormatting", {}) - - null_ls.setup({ - 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() - lsp_formatting(bufnr) - end, - }) - end - end, - sources = { - diagnostics.actionlint, - diagnostics.alex, - diagnostics.codespell, - diagnostics.deadnix, - diagnostics.pylint, - diagnostics.shellcheck, - diagnostics.statix, - formatting.alejandra, - formatting.beautysh, - formatting.codespell, - formatting.just, - formatting.nimpretty, - formatting.prettier, - formatting.rustfmt, - formatting.shellharden, - formatting.stylua, - formatting.yapf, - }, - }) -end -- cgit v1.2.3