You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to install a new dictionary following the instructions. However, cspell.nvim does not seem take the new dictionary into account. Weirdly, if I run cspell through a term manually, it works as expected. Thus the result is something like this:
At the top, you see cspell.nvim's highlighting through null-ls. At the bottom is the cspell output.
"Katze" (cat) is a German word. German words are generally case sensitive, thus "katze" is expected to be incorrect. "clearlynotaproperword" is just there to check that incorrect words still recognized for English words and "english" is a correct English word. "acustomword" is a word I added to the cspell.json to check that the file is used at all by cspell.nvim.
cspell as an external command works as intended. cspell is not installed on the system, it is installed only for nvim with mason.
cspell.nvim does not take into account the imported file. It does recognize the custom word added manually to the config though.
I dug a little deeper and the issue seems to be that the top level cspell.json generated by cspell.nvim which imports the local cspell.json in the project does not respect the language settings of the imported files. I think that makes sense in the context of cspell, you don't want all the imports to add their own languages. However, in the context of this plugin, it results in unexpected and undesired behavior.
To give the concrete file contents: The language setting "en" leads to the language "de" in the imported file being discarded. New languages cannot be added.
I tried to install a new dictionary following the instructions. However, cspell.nvim does not seem take the new dictionary into account. Weirdly, if I run cspell through a term manually, it works as expected. Thus the result is something like this:
At the top, you see cspell.nvim's highlighting through null-ls. At the bottom is the cspell output.
"Katze" (cat) is a German word. German words are generally case sensitive, thus "katze" is expected to be incorrect. "clearlynotaproperword" is just there to check that incorrect words still recognized for English words and "english" is a correct English word. "acustomword" is a word I added to the cspell.json to check that the file is used at all by cspell.nvim.
cspell as an external command works as intended. cspell is not installed on the system, it is installed only for nvim with mason.
cspell.nvim does not take into account the imported file. It does recognize the custom word added manually to the config though.
Last but not least, the cspell.json:
I'm on Windows 11, if that changes anything. The issue is the same on powershell and cmd.
Any ideas what might be going on?
The text was updated successfully, but these errors were encountered: