mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
update: moved from volar to vue_ls
This commit is contained in:
parent
d1f2664dbf
commit
61b73eee24
3 changed files with 19 additions and 2 deletions
|
|
@ -63,6 +63,11 @@ return {
|
||||||
enable_roslyn_analyzers = true,
|
enable_roslyn_analyzers = true,
|
||||||
organize_imports_on_format = true,
|
organize_imports_on_format = true,
|
||||||
enable_import_completion = true,
|
enable_import_completion = true,
|
||||||
|
init_options = {
|
||||||
|
razor = {
|
||||||
|
devMode = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ return {
|
||||||
"typescript",
|
"typescript",
|
||||||
"typescriptreact",
|
"typescriptreact",
|
||||||
"typescript.tsx",
|
"typescript.tsx",
|
||||||
|
"vue",
|
||||||
},
|
},
|
||||||
settings = {
|
settings = {
|
||||||
complete_function_calls = true,
|
complete_function_calls = true,
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,11 @@ return {
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
opts = {
|
opts = {
|
||||||
servers = {
|
servers = {
|
||||||
volar = {
|
vue_ls = {
|
||||||
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" },
|
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue" },
|
||||||
init_options = {
|
init_options = {
|
||||||
vue = {
|
vue = {
|
||||||
hybridMode = false,
|
hybridMode = true,
|
||||||
},
|
},
|
||||||
typescript = {
|
typescript = {
|
||||||
tsdk = vim.fn.getcwd() .. "/node_modules/typescript/lib",
|
tsdk = vim.fn.getcwd() .. "/node_modules/typescript/lib",
|
||||||
|
|
@ -39,6 +39,17 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
vtsls = {
|
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 = {
|
filetypes = {
|
||||||
"javascript",
|
"javascript",
|
||||||
"javascriptreact",
|
"javascriptreact",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue