Compare commits
2 commits
9b3d6c7ebf
...
3df862b86b
Author | SHA1 | Date | |
---|---|---|---|
3df862b86b | |||
08d87565fa |
2 changed files with 19 additions and 12 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 8b0f47d851ee5343d38fe194a06ad16b9b9bd086
|
Subproject commit 177be29e7b9c084c9200ee4033eb66e04ac536ec
|
29
lua/init.lua
29
lua/init.lua
|
@ -107,26 +107,33 @@ vim.lsp.config("hls", {
|
||||||
|
|
||||||
local yarn_path = vim.fn.expand("$HOME/.config/yarn/global/node_modules")
|
local yarn_path = vim.fn.expand("$HOME/.config/yarn/global/node_modules")
|
||||||
|
|
||||||
vim.lsp.enable("ts_ls")
|
vim.lsp.enable("vtsls")
|
||||||
vim.lsp.config("ts_ls", {
|
vim.lsp.config("vtsls", {
|
||||||
init_options = {
|
settings = {
|
||||||
plugins = {
|
vtsls = {
|
||||||
{
|
tsserver = {
|
||||||
name = "@vue/typescript-plugin",
|
globalPlugins = {
|
||||||
location = yarn_path .. "/@vue/typescript-plugin",
|
{
|
||||||
languages = { "javascript", "typescript", "vue" },
|
configNamespace = "typescript",
|
||||||
|
name = "@vue/typescript-plugin",
|
||||||
|
location = yarn_path .. "/@vue/typescript-plugin",
|
||||||
|
languages = { "vue" },
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
filetypes = {
|
filetypes = {
|
||||||
"javascript",
|
"javascript",
|
||||||
|
"javascriptreact",
|
||||||
"typescript",
|
"typescript",
|
||||||
|
"typescriptreact",
|
||||||
"vue",
|
"vue",
|
||||||
},
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.lsp.enable("volar")
|
vim.lsp.enable("vue_ls")
|
||||||
vim.lsp.config("volar", {
|
vim.lsp.config("vue_ls", {
|
||||||
init_options = {
|
init_options = {
|
||||||
typescript = {
|
typescript = {
|
||||||
tsdk = yarn_path .. "/typescript/lib",
|
tsdk = yarn_path .. "/typescript/lib",
|
||||||
|
|
Loading…
Reference in a new issue