refactor(nvim)!: remove cspell
parent
795d6ececd
commit
21070e6438
|
@ -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
|
||||||
|
|
|
@ -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" })
|
||||||
|
|
Loading…
Reference in New Issue