DenoDDeno
Powered by
Lewis CampbellL
Denoβ€’2y agoβ€’
1 reply
Lewis Campbell

neovim LSP - both denols and tsserver are attaching

Hi, I am following the guide here.

https://docs.deno.com/runtime/manual/getting_started/setup_your_environment/#neovim-0.6%2B-using-the-built-in-language-server

and have lsp set up like

lspconfig["denols"].setup{
    root_dir = lspconfig.util.root_pattern("deno.json", "deno.jsonrc")
}

lspconfig["tsserver"].setup{
    root_dir = lspconfig.util.root_pattern("package.json"),
    single_file_support = false,
}
lspconfig["denols"].setup{
    root_dir = lspconfig.util.root_pattern("deno.json", "deno.jsonrc")
}

lspconfig["tsserver"].setup{
    root_dir = lspconfig.util.root_pattern("package.json"),
    single_file_support = false,
}

but if I open
main.ts
main.ts
in a directory that looks like this:

$ ls
deno.json  deno.lock  main.ts  README.md
$ ls
deno.json  deno.lock  main.ts  README.md


Both denols and tsserver attach.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Why are both denols and tsserver attaching to the same TypeScript project in Neovim?
MajorAmariMMajorAmari / help
15mo ago
DenoLS interfering with TsServer in neovim
:D::D / help
2y ago
Denols Neovim
Joseph CrawfordJJoseph Crawford / help
2y ago
Nvim tsserver clash with denols
SmorSSmor / help
3y ago