neovim: use vue-language-server and drop vtsls due to poor support in vue
This commit is contained in:
parent
03e8eaf451
commit
c693a00cd4
|
@ -34,7 +34,7 @@
|
|||
nixfmt-rfc-style
|
||||
|
||||
# TypeScript
|
||||
(callPackage ../vtsls/package.nix { })
|
||||
typescript-language-server
|
||||
|
||||
# Rust
|
||||
rust-analyzer
|
||||
|
@ -42,7 +42,7 @@
|
|||
vscode-extensions.vadimcn.vscode-lldb.adapter
|
||||
|
||||
# Vue
|
||||
vscode-extensions.vue.volar
|
||||
vue-language-server
|
||||
|
||||
# Svelte
|
||||
nodePackages.svelte-language-server
|
||||
|
|
|
@ -60,7 +60,7 @@ return {
|
|||
"svelte",
|
||||
"taplo",
|
||||
"volar",
|
||||
"vtsls",
|
||||
"tsserver",
|
||||
"yamlls",
|
||||
},
|
||||
-- customize language server configuration options passed to `lspconfig`
|
||||
|
@ -72,7 +72,7 @@ return {
|
|||
nixd = {
|
||||
options = {
|
||||
nixos = {
|
||||
expr = '(builtins.getFlake ("git+file:///home/wizardlink/.system")).nixosConfigurations.nixos.options',
|
||||
expr = '(builtins.getFlake ("git+file:///home/wizardlink/.system")).nixosConfigurations.wizdesk.options',
|
||||
},
|
||||
home_manager = {
|
||||
expr =
|
||||
|
@ -82,6 +82,22 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
tsserver = {
|
||||
init_options = {
|
||||
plugins = {
|
||||
{
|
||||
name = "@vue/typescript-plugin",
|
||||
location = {}, -- Means we need @vue/typescript-plugin in node_modules
|
||||
languages = { "javascript", "typescript", "vue" },
|
||||
},
|
||||
},
|
||||
},
|
||||
filetypes = {
|
||||
"javascript",
|
||||
"typescript",
|
||||
"vue",
|
||||
},
|
||||
},
|
||||
},
|
||||
-- customize how language servers are attached
|
||||
handlers = {
|
||||
|
|
Loading…
Reference in a new issue