Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neovim LSP configuration part is outdated and fails in some cases #1142

Open
LearnWebGitHub opened this issue Nov 14, 2024 · 0 comments
Open
Labels
documentation Improvements or additions to documentation runtime

Comments

@LearnWebGitHub
Copy link

Due to compatibility with npm, there may now be a package.json in the Deno project, so denols and ts_ls may be enabled at the same time.
Neovim LSP configuration

local nvim_lsp = require('lspconfig')
nvim_lsp.denols.setup {
  on_attach = on_attach,
  root_dir = nvim_lsp.util.root_pattern("deno.json", "deno.jsonc"),
}

nvim_lsp.ts_ls.setup {
  on_attach = on_attach,
  root_dir = nvim_lsp.util.root_pattern("package.json"),
  single_file_support = false
}
@thisisjofrank thisisjofrank added documentation Improvements or additions to documentation runtime labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation runtime
Projects
None yet
Development

No branches or pull requests

2 participants