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 nil
nixpkgs-fmt nixpkgs-fmt
nodePackages.bash-language-server nodePackages.bash-language-server
nodePackages.cspell
rustfmt rustfmt
shellcheck shellcheck
shfmt shfmt

View file

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