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
Showing only changes of commit 061ff0f5f5 - Show all commits

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
let inherit (lib.nix2lua) call; in
{
@ -27,13 +27,17 @@ let inherit (lib.nix2lua) call; in
};
tsserver = rec {
filetypes = [ "javascript" "javascriptreact" "typescript" "typescriptreact" "vue" ];
init_options.plugins = [
{
name = "@vue/typescript-plugin";
location = "./node_modules/@vue/typescript-plugin";
languages = filetypes;
}
];
cmd = "${pkgs.nodePackages.typescript-language-server}/bin/typescript-language-server --stdio";
init_options = {
plugins = [
{
name = "@vue/typescript-plugin";
location = "./node_modules/@vue/typescript-plugin";
languages = filetypes;
}
];
tsserver.fallbackPath = "${pkgs.nodePackages.typescript}/lib/node_modules/typescript/lib";
};
};
eslint = {
on_attach = config.fn.lspconfig-eslint-on-attach.lambda;