Closed Saplyn closed 3 months ago
Specifically, I wanted to enable cspell for all languages (md, cpp, rs, etc.) for spell checking, but didn't find a convenient way to do so.
text
lint.linters_by_ft = { markdown = { 'markdownlint' }, text = { 'cspell' }, }
:help nvim-lint-*
I want to know if there's a convenient way to do so, like...
lint.linters_by_ft = { all = { 'cspell' }, }
... or some thing like that.
I noticed that enabling cspell for one language (I've tried markdown) is possible through the linters_by_ft:
linters_by_ft
lint.linters_by_ft = { markdown = { 'markdownlint', 'cspell' }, }
For reference, my neovim config.
https://github.com/mfussenegger/nvim-lint/issues/355#issuecomment-1759203127
Thanks and sorry for not checking the right place. And... shall we add the solution to the README or some sort of FAQ? It seems to be a common problem.
Problem
Specifically, I wanted to enable cspell for all languages (md, cpp, rs, etc.) for spell checking, but didn't find a convenient way to do so.
I've Tried
text
field (like below), but I don't see the diagnostic messages pops up (when I opened up a markdown file).:help nvim-lint-*
, but none of them mentioned how. (the doc seems to be the README?)Expectation
I want to know if there's a convenient way to do so, like...
... or some thing like that.
Misc
I noticed that enabling cspell for one language (I've tried markdown) is possible through the
linters_by_ft
:For reference, my neovim config.