update: moved from volar to vue_ls

This commit is contained in:
Kemboi Elvis 2025-06-13 10:12:45 +03:00
parent d1f2664dbf
commit 61b73eee24
3 changed files with 19 additions and 2 deletions

View file

@ -63,6 +63,11 @@ return {
enable_roslyn_analyzers = true,
organize_imports_on_format = true,
enable_import_completion = true,
init_options = {
razor = {
devMode = false,
},
},
},
},
},

View file

@ -37,6 +37,7 @@ return {
"typescript",
"typescriptreact",
"typescript.tsx",
"vue",
},
settings = {
complete_function_calls = true,

View file

@ -19,11 +19,11 @@ return {
"neovim/nvim-lspconfig",
opts = {
servers = {
volar = {
vue_ls = {
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" },
init_options = {
vue = {
hybridMode = false,
hybridMode = true,
},
typescript = {
tsdk = vim.fn.getcwd() .. "/node_modules/typescript/lib",
@ -39,6 +39,17 @@ return {
},
},
vtsls = {
init_options = {
plugins = {
{
name = "@vue/typescript-plugin",
location = LazyVim.get_pkg_path("vue-language-server", "/node_modules/@vue/language-server"),
languages = { "vue" },
configNamespace = "typescript",
enableForWorkspaceTypeScriptVersions = true,
},
},
},
filetypes = {
"javascript",
"javascriptreact",