Smor
Smor17mo ago

Nvim deno tsserver conflict

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
1 Reply
Smor
Smor17mo ago
Solved im just terrible at configuring nvim