Vue support fixed
This commit is contained in:
parent
18da9560c6
commit
70f5f3c859
7 changed files with 62 additions and 26 deletions
14
lua/lsp/ts_ls.lua
Normal file
14
lua/lsp/ts_ls.lua
Normal 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" },
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue