Browse Source

fix: tsserver config

master
Tovi Jaeschke-Rogers 7 months ago
parent
commit
173844c635
1 changed files with 17 additions and 1 deletions
  1. +17
    -1
      .config/nvim/lua/tovi/plugins/lsp/lspconfig.lua

+ 17
- 1
.config/nvim/lua/tovi/plugins/lsp/lspconfig.lua View File

@ -114,7 +114,18 @@ return {
lspconfig["tsserver"].setup({
capabilities = capabilities,
on_attach = on_attach,
})
filetypes = { "vue" },
init_options = {
tsdk = '/usr/local/lib/node_modules/typescript/lib',
plugins = {
{
name = "@vue/typescript-plugin",
location = "/usr/local/lib/node_modules/@vue/typescript-plugin",
languages = {"javascript", "typescript", "vue"},
},
},
},
})
-- configure css server
lspconfig["cssls"].setup({
@ -127,6 +138,11 @@ return {
capabilities = capabilities,
on_attach = on_attach,
filetypes = { "vue" },
init_options = {
typescript = {
tsdk = '/usr/local/lib/node_modules/typescript/lib'
},
},
})
-- configure php server


Loading…
Cancel
Save