refactor(nvim)!: remove cspell

This commit is contained in:
Moritz Böhme 2023-07-15 12:48:10 +02:00
parent 795d6ececd
commit 21070e6438
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
2 changed files with 0 additions and 10 deletions

View file

@ -231,7 +231,6 @@ in
nil
nixpkgs-fmt
nodePackages.bash-language-server
nodePackages.cspell
rustfmt
shellcheck
shfmt

View file

@ -3,14 +3,12 @@ local null_ls = require("null-ls")
null_ls.setup({
sources = {
-- Code actions
null_ls.builtins.code_actions.cspell,
null_ls.builtins.code_actions.gitsigns,
null_ls.builtins.code_actions.shellcheck,
null_ls.builtins.code_actions.statix,
-- Completion
null_ls.builtins.completion.spell,
-- Diagnostics
null_ls.builtins.diagnostics.cspell,
null_ls.builtins.diagnostics.deadnix,
null_ls.builtins.diagnostics.shellcheck,
null_ls.builtins.diagnostics.statix,
@ -18,7 +16,6 @@ null_ls.setup({
})
-- disable (c)spell initially
null_ls.disable("cspell")
null_ls.disable("spell")
-- make sources toggle able
@ -31,11 +28,5 @@ require("which-key").register({
end,
"spell",
},
S = {
function()
null_ls.toggle("cspell")
end,
"cspell",
},
},
}, { prefix = "<leader>t" })