vue-language-server doesn't work properly #10349
-
SummaryFollowing steps on #2194 thread, i get volar to run. But it doens't work as expected. I believe the volar is running but for some reason it doesn't work like it should. I can hover to <script> <template> <style> but not the others. And.. basically nothing works except hovering the tags i mentioned. Reproduction StepsI tried this:
[language-server.vue-language-server]
command = "vue-language-server"
args = ["--stdio"]
config.typescript.tsdk = "/home/alimulap/.local/share/pnpm/global/5/node_modules/typescript/lib"
[[language]]
name = "vue"
file-types = ["vue"]
language-servers = ["vue-language-server"]
scope = "text.html.vue"
roots = ["package.json"]
injection-regex = "vue"
auto-format = true I expected this to happen:
Instead, this happened:
Helix logThis is the log since opening helix and trying to hover to some symbols ~/.cache/helix/helix.log
PlatformArch Linux Terminal Emulatoralacritty 0.13.2 (bb8ea18e) Installation Methodpacman Helix Versionhelix 23.10 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
What You can install the plugin (globally) using: npm install -g @vue/typescript-plugin This is what I have: [[language]]
name = "vue"
auto-format = false
formatter = { command = "prettier", args = ["--parser", "vue"] }
language-servers = ["vuels", "typescript-language-server", "emmet-lsp", "scls"] # Emmet en snippet completion for the last 2
[[language-server.typescript-language-server.config.plugins]]
name = "@vue/typescript-plugin"
location = "/full/path/to/typescript/plugin/@vue/typescript-plugin"
languages = ["vue"]
# Bonus, here's my Astro config:
[[language]]
name = "astro"
roots = ["package.json", "astro.config.ts"]
auto-format = false
formatter = { command = "prettier", args = ["--parser", "astro"] }
language-servers = [ "typescript-language-server", "emmet-lsp", "scls", "tailwindcss-language-server" ]
[[language-server.typescript-language-server.config.plugins]]
name = "@astrojs/ts-plugin"
location = "/home/rishi/.npm-packages/lib/node_modules/@astrojs/ts-plugin"
languages = [ "astro" ] This is thanks to: withastro/language-tools#767 (comment) |
Beta Was this translation helpful? Give feedback.
-
@zetashift I don't get autocomplete, do you? |
Beta Was this translation helpful? Give feedback.
-
What works for me is using a
in combination with the |
Beta Was this translation helpful? Give feedback.
What
vue-language-server
version are you using? After2.0.0
release things got a bit different: tt's now atypescript
plugin as well:You can install the plugin (globally) using:
This is what I have: