neovim: use typescript-tools instead of typescript-language-server #18

Merged
pleshevskiy merged 3 commits from neovim/tsserver into main 2024-08-10 10:01:58 +03:00
3 changed files with 18 additions and 10 deletions

View file

@ -25,18 +25,12 @@ let inherit (lib.nix2lua) call; in
"cargo.autoreload" = true;
};
};
tsserver = rec {
filetypes = [ "javascript" "javascriptreact" "typescript" "typescriptreact" "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;
flags = {
allow_incremental_sync = false;
debounce_text_changes = 1000;
};
};
volar = {
init_options = {

View file

@ -1,5 +1,6 @@
{
imports = [
./ollama.nix
./typescript-tools.nix
];
}

View file

@ -0,0 +1,13 @@
{
plugin.typescript-tools-nvim = {
enable = true;
name = "typescript-tools";
setupSettings = {
filetypes = [ "javascript" "javascriptreact" "typescript" "typescriptreact" "vue" ];
settings = {
tsserver_max_memory = "auto";
tsserver_plugins = [ "@vue/typescript-plugin" ];
};
};
};
}