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,
|
||||
organize_imports_on_format = true,
|
||||
enable_import_completion = true,
|
||||
init_options = {
|
||||
razor = {
|
||||
devMode = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ return {
|
|||
"typescript",
|
||||
"typescriptreact",
|
||||
"typescript.tsx",
|
||||
"vue",
|
||||
},
|
||||
settings = {
|
||||
complete_function_calls = true,
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue