null-ls.nvim icon indicating copy to clipboard operation
null-ls.nvim copied to clipboard

CSpell ignores custom dictionary `addWord` logic.

Open dzintars opened this issue 2 years ago • 2 comments

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

dzintars avatar Feb 23 '23 13:02 dzintars

I mentioned this in #1412, but the same comment applies here:

The cspell built-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.

jose-elias-alvarez avatar Mar 06 '23 04:03 jose-elias-alvarez

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.

davidmh avatar May 18 '23 22:05 davidmh