Lewis CampbellL
Denoβ€’17mo 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,
}

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

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


Both denols and tsserver attach.
Was this page helpful?