davidmh / cspell.nvim

A companion plugin for null-ls/none-ls, adding support for CSpell diagnostics and code actions.
82 stars 13 forks source link

Is it possible to configure global cspell.json? #18

Closed quolpr closed 1 year ago

quolpr commented 1 year ago

Hey! Thank you for the great plugin, spell checking was stopping me from moving away from coc. But the problem is that I want to have global cspell.json that will be merging with local cspell.json. And when it shows the suggestion to add a word, I would like to have the option to add to local or to global. Would it be possible to do with the current setup?

davidmh commented 1 year ago

Hi @quolpr,

Would it be possible to do with the current setup?

Not with the current setup, unfortunately. The main problem is the plugin not being aware of more than one configuration file.

I can see a possible solution where we read multiple json config files to be used only as targets in the code actions.

But with null-ls being officially archived, I'm not super keen into adding new features to this plugin. Mainly because I no longer use it.

That being said, I'm open to merging pull requests and to give guidance into adding more features.

quolpr commented 1 year ago

@davidmh thanks! If you are no longer use it, I am curious, do you have an alternative?

davidmh commented 1 year ago

I'm currently trying out nvim-lint, but it doesn't support code actions. I'm not super happy with it, so I might just come back to null-ls and lock myself into nvim 0.9 for now.