Skip to content

Commit

Permalink
fix(nvim): cspell with correct filetypes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroSuero committed Sep 10, 2024
1 parent 2d74878 commit ffb2f5d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions roles/neovim/files/lua/custom/plugins/lsp/none-ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ return {
return utils.root_has_file { ".markdownlint.json" }
end,
},
diagnostics.editorconfig_checker,
cspell.diagnostics,
-- code_actions
code_actions.refactoring,
-- require "none-ls.diagnostics.stylua",
Expand All @@ -74,6 +72,12 @@ return {
end,
},
-- diagnostics
diagnostics.editorconfig_checker,
cspell.diagnostics.with {
condition = function(utils)
return utils.root_has_file { "cspell.json", ".cspell.json" }
end,
},
diagnostics.codespell.with {
filetypes = { "markdown", "text" },
},
Expand Down

0 comments on commit ffb2f5d

Please sign in to comment.