We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From documentation for hybridMode: false: Make sure you have typescript installed globally or pass the location to volar
hybridMode: false
How to pass typescript location to volar?
A an trying to configure neovim lsp
require'lspconfig'.volar.setup { filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' }, init_options = { vue = { hybridMode = false, }, }, on_attach = on_attach, capabilities = capabilities }
The text was updated successfully, but these errors were encountered:
In most case lspconfig will do that for you, e.g. find tsdk in pwd first then find in root. see: https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/server_configurations/volar.lua#L27
lspconfig
If you want to define yourself you can do
require'lspconfig'.volar.setup { filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' }, init_options = { vue = { hybridMode = false, }, + typescript = { + tsdk = <YOUR_PATH> + }, }, on_attach = on_attach, capabilities = capabilities }
see:
language-tools/packages/language-server/lib/types.ts
Lines 4 to 6 in d587ba0
Sorry, something went wrong.
Thanks!
No branches or pull requests
From documentation for
hybridMode: false
:Make sure you have typescript installed globally or pass the location to volar
How to pass typescript location to volar?
A an trying to configure neovim lsp
The text was updated successfully, but these errors were encountered: