DenoDDeno
Powered by
SmorS
Denoβ€’4y agoβ€’
1 reply
Smor

Nvim deno tsserver conflict

my language servers are conflicting when i open a deno project, if i use
LspInfo
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
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Nvim tsserver clash with denols
SmorSSmor / help
3y ago
Deno + TSServer weirdness
nl7Nnl7 / help
2y ago
Inlay hints for Deno LSP in nvim?
marcus_polonusMmarcus_polonus / help
15mo ago