From 21954357531ba530180c44af35da495306211248 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 7 Jun 2024 20:24:00 +0300 Subject: [PATCH] neovim: add @vue/typescript-plugin --- neovim/dev.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/neovim/dev.nix b/neovim/dev.nix index d70c8cf..b97acbb 100644 --- a/neovim/dev.nix +++ b/neovim/dev.nix @@ -125,7 +125,16 @@ in "cargo.autoreload" = true; }; }; - tsserver = { }; + tsserver = rec { + filetypes = [ "javascript" "typescript" "vue" ]; + init_options.plugins = [ + { + name = "@vue/typescript-plugin"; + location = "./node_modules/@vue/typescript-plugin"; + languages = filetypes; + } + ]; + }; eslint = { on_attach = config.fn.lspconfig-eslint-on-attach.lambda; }; @@ -142,7 +151,7 @@ in denols = { root_dir = call "${config.plugin.nvim-lspconfig.varName}.util.root_pattern" [ "deno.json" "deno.jsonc" ]; }; - jdtls = { cmd = ["jdtls"]; }; + jdtls = { cmd = [ "jdtls" ]; }; }; plugins.snippet.luasnip.settings = {