Vue support fixed

This commit is contained in:
Maurice Grönwoldt 2025-09-17 17:53:46 +02:00
commit 70f5f3c859
No known key found for this signature in database
GPG key ID: FBB005FE74FEF996
7 changed files with 62 additions and 26 deletions

14
lua/lsp/ts_ls.lua Normal file
View file

@ -0,0 +1,14 @@
local vue_language_server_path = vim.fn.expand '$MASON/packages' .. '/vue-language-server' .. '/node_modules/@vue/language-server'
return {
init_options = {
plugins = {
{
name = "@vue/typescript-plugin",
location = vue_language_server_path,
languages = { "vue" },
},
},
},
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" },
}