language-tools
language-tools copied to clipboard
Neovim: Does Volar not provide suggestions for Vue's template?
Currently, Volar works very well on Neovim, but for some reason, component completion suggestions in HTML only appear for components that are imported in the setup.
https://github.com/vuejs/language-tools/assets/51357674/ce688ef8-56b8-4fce-81f7-ae6fe6abcd2b
Does this bug still happen in the latest version?
I still have this issue, has a solution been found?
/cc @RayGuo-ergou
I remember this has been resolved long time ago, @DrWalrus1 can you confirm your LSP is up to date.
Here's a screenshot with 2.1.10
@RayGuo-ergou
Can confirm I am working with 2.1.10
Heres a screenshot
Would you also be able to send you lspconfig settings for volar and ts_server as well? I'm new to setting this stuff up so it could be config too
@RayGuo-ergou Can confirm I am working with
2.1.10Heres a screenshot
Would you also be able to send you lspconfig settings for volar and ts_server as well? I'm new to setting this stuff up so it could be config too
The reality is that volar is working very well.
@RayGuo-ergou Can confirm I am working with
2.1.10Heres a screenshot
Would you also be able to send you lspconfig settings for volar and ts_server as well? I'm new to setting this stuff up so it could be config too
https://github.com/user-attachments/assets/ab770290-6032-479e-aa1d-fc3217f6088f
Hi all, I must apologise, after taking a look at @RayGuo-ergou nvim config I have realised a few key mistakes in my own config. I have fixed them and now I have it working successfully.
I'm going to link my config here in case any poor soul runs into the same situation and wants something to compare notes this https://github.com/DrWalrus1/nvim-config/blob/649b2ec07fccb4f721066e44d17ba6ed62fab282/lua/plugins/lspconfig.lua#L195-L244
The problem should be caused by HTML completion triggered by < which resulted in TS completion not being triggered. It requires us to manually trigger completion after <xxx.
Happy to see your issue resolved.
@KazariEX I think this issue can be closed.
The problem should be caused by HTML completion triggered by
<which resulted in TS completion not being triggered. It requires us to manually trigger completion after<xxx.
@KazariEX I'm having this same issue. When I type my code normally, its just giving me HTML suggestions:
However if I complete the brackets <>, I will get TS options (including components not imported in this file yet):
How did you resolve this?
I have the same issue almost. At first blink shows me components that are already imported. After i close the list and trigger it again i get the whole list. .Looks like it's the same in Vscode.
