D
Deno

help

Nvim deno tsserver conflict

SSmor3/11/2023
my language servers are conflicting when i open a deno project, if i use LspInfo i can see both deno and tsserver are setup on the buffer. here is what i have on my lsp config:
nvim_lsp.denols.setup({
on_attach = on_attach,
root_dir = nvim_lsp.util.root_pattern("deno.json"),
init_options = {
lint = true,
},
capabilities = capabilities,
})

nvim_lsp.tsserver.setup({
on_attach = on_attach,
root_dir = nvim_lsp.util.root_pattern("package.json"),
single_file_support = false,
init_options = {
lint = true,
},
capabilities = capabilities,
})
nvim_lsp.denols.setup({
on_attach = on_attach,
root_dir = nvim_lsp.util.root_pattern("deno.json"),
init_options = {
lint = true,
},
capabilities = capabilities,
})

nvim_lsp.tsserver.setup({
on_attach = on_attach,
root_dir = nvim_lsp.util.root_pattern("package.json"),
single_file_support = false,
init_options = {
lint = true,
},
capabilities = capabilities,
})
I do have a deno.json on my deno project and it still happens Solved im just terrible at configuring nvim

Looking for more? Join the community!