pmizio / typescript-tools.nvim

⚡ TypeScript integration NeoVim deserves ⚡
MIT License
1.26k stars 36 forks source link

how to set the rootdir ? #263

Closed tendertree closed 2 weeks ago

tendertree commented 2 months ago

to avoid confilcts with deno. I try to set the root dir to "package.json" to apply this method

nvim_lsp.tsserver.setup {
  on_attach = on_attach,
  root_dir = nvim_lsp.util.root_pattern("package.json"),
  single_file_support = false
}

However, I don't konw how to set the root dir in default config

do I load tsserver config seperately ?

m3astwood commented 2 months ago

@tendertree there is a solution here that might help you : #132