neovim: add @vue/typescript-plugin

This commit is contained in:
Dmitriy Pleshevskiy 2024-06-07 20:24:00 +03:00
parent da1cec5765
commit 2195435753
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -125,7 +125,16 @@ in
"cargo.autoreload" = true; "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 = { eslint = {
on_attach = config.fn.lspconfig-eslint-on-attach.lambda; on_attach = config.fn.lspconfig-eslint-on-attach.lambda;
}; };
@ -142,7 +151,7 @@ in
denols = { denols = {
root_dir = call "${config.plugin.nvim-lspconfig.varName}.util.root_pattern" [ "deno.json" "deno.jsonc" ]; 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 = { plugins.snippet.luasnip.settings = {