Hello, I am using the nim language server plugin on nvim as lsp server. And, I noticed that it spawns multiple instances of nimsuggest for every nim, nimble or nims file I open. I have tried adding a projectPath = "./" In the config file but that still doesn't work. Is there any way I can fix this?
The text editor is neo vim and I use Lua for the config file
Nimsuggest works on a project basis, so if the language server isn't able to detect that the files come from the same project then it needs another copy of nimsuggest. If your files are in fact from the same project then it's a problem with the language servers project detection.
NimLSP doesn't spawn nimsuggest at all, instead running internal instances as it imports it as a library instead. It also has decent project support, but I think that might've been copied over to langserver when it was created, not entirely sure.
If you are using vscode, try add this line on you settings.json:
"nim.project": ["./src/main.nim"],
It solves the spawning problem and also the extreme cpu usage.