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
feat: support volar 1.0 #2181
feat: support volar 1.0 #2181
Conversation
47ff815
to
9ddb961
Compare
Volar introduced some breaking changes in version 1.0 vuejs/language-tools#1916. Also see neovim/nvim-lspconfig#2181.
@adalessa With volar 1.0.9 it's missing many capabilities for me now: method textDocument/definition is not supported by any of the servers registered for the current buffer Do these work for you? |
Those all work for me, tested on https://github.com/archlinux-de/pkgstats.archlinux.de. |
@polyzen Thanks. What's your neovim version? I use the latest nvim-lspconfig and volar versions with neovim 0.8.0. |
0.8.0 |
same as @mikehaertl , latest nvim-lspconfig, volar(1.0.9)+neovim 0.8.1. looks like something still wrong. |
For reference I use the following: |
If you are experiencing issues, have you downloaded both:
If you still are experiencing issues, set the require('lsp-config')['volar'].setup{
on_attach = on_attach,
capabilities = capabilities,
init_options = {
typescript = {
tsdk = "/global/npm/install/path/to/node_modules/typescript/lib"
}
}
} |
@pwang2 See the latest comment here: vuejs/language-tools#1916 (comment)
So the issue should hopefully be fixed in the next volar release. |
Thank you @mikehaertl , I also resulted at that comments. :) waiting for 1.0.10. |
For the record, still getting the issue with 1.0.10:
Solved by setting |
@mmoya Could it be that you're using volar on a project with workspaces? There's a script in https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#volar which required an update, too, to change from With that in place 1.0.10 works fine for me. |
I don't know if I have workspaces or not, which probably means I don't have it. Anyway I solved the issue by setting the |
Volar has updated the options for the language server. see vuejs/language-tools#1916
In order to support this I have update the configuration.
this also has been reported to neovim neovim/neovim#20010 but is more related to the config not the core.
Thanks in advance.