|
@ -114,7 +114,18 @@ return { |
|
|
lspconfig["tsserver"].setup({ |
|
|
lspconfig["tsserver"].setup({ |
|
|
capabilities = capabilities, |
|
|
capabilities = capabilities, |
|
|
on_attach = on_attach, |
|
|
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 |
|
|
-- configure css server |
|
|
lspconfig["cssls"].setup({ |
|
|
lspconfig["cssls"].setup({ |
|
@ -127,6 +138,11 @@ return { |
|
|
capabilities = capabilities, |
|
|
capabilities = capabilities, |
|
|
on_attach = on_attach, |
|
|
on_attach = on_attach, |
|
|
filetypes = { "vue" }, |
|
|
filetypes = { "vue" }, |
|
|
|
|
|
init_options = { |
|
|
|
|
|
typescript = { |
|
|
|
|
|
tsdk = '/usr/local/lib/node_modules/typescript/lib' |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
-- configure php server |
|
|
-- configure php server |
|
|