Nvim tsserver clash with denols
I have read the docs and added a root_dir in my lua lsp file but for some reason tsserver still lanches on my deno fresh project
2 Replies
According to the documentation, if you have both
tsserver
and denols
as LSP clients, you may run into issues where both are attached to your current buffer. To resolve this, you need to set a unique root_dir
for both tsserver
and denols
.
Here is an example of such a configuration provided in the documentation:
In this configuration, denols
is set to look for a deno.json
or deno.jsonc
file to determine the root directory, while tsserver
is set to look for a package.json
file. Also, single_file_support
is set to false
for tsserver
to prevent it from running in single file mode
.
If you've already done this and are still experiencing issues, it might be helpful to double-check your configuration and ensure that the root_dir
for tsserver
and denols
are indeed unique and correctly pointing to the respective files. If the issue persists, it might be a good idea to debug your configuration or ask for help in the Deno community. 🦕