feat: add typescript lsp w/ volar
This commit is contained in:
parent
64597b16c2
commit
146291ce3b
2 changed files with 18 additions and 0 deletions
7
lua/custom/lsp/config/ts_ls.lua
Normal file
7
lua/custom/lsp/config/ts_ls.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
filetypes = {
|
||||
"javascript",
|
||||
"typescript",
|
||||
"vue",
|
||||
},
|
||||
}
|
||||
11
lua/custom/lsp/config/volar.lua
Normal file
11
lua/custom/lsp/config/volar.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
return {
|
||||
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
|
||||
init_options = {
|
||||
vue = {
|
||||
hybridMode = false,
|
||||
},
|
||||
typescript = {
|
||||
tsdk = "/home/simon/.local/share/nvim/mason/packages/vue-language-server/node_modules/typescript/lib/",
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Reference in a new issue