null-ls.nvim
null-ls.nvim copied to clipboard
CSpell ignores custom dictionary `addWord` logic.
Issues
- [X] I have checked existing issues and there are no existing ones with the same request.
Feature description
As per cspell documentation user can create custom dictionaries in the external files.
Option addWord allows to add words to that external file.
Current logic of cspell Builtin code action ignores that and writes all words to the cspell configuration file.
I am not aware what happens if some user (by some reason) creates several external dictionaries and each has addWord option.
Help
No
Implementation help
No response
I mentioned this in #1412, but the same comment applies here:
The
cspellbuilt-in sources are some of the most complex we have, and there's still more features that are missing - see #1415 for an example. Honestly I think the best approach would be to create a companion plugin that uses the null-ls API, similar to prettier.nvim.
Hey @dzintars I had the same request, and after chatting with @jose-elias-alvarez we decided to split off the CSpell sources into a companion plugin, checkout cspell.nvim which adds support custom dictionaries.