neovim: use typescript-tools instead of typescript-language-server
This commit is contained in:
parent
1ba961aec9
commit
f4e4f8ef91
3 changed files with 15 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
|
||||
let inherit (lib.nix2lua) call; in
|
||||
{
|
||||
|
@ -25,20 +25,6 @@ let inherit (lib.nix2lua) call; in
|
|||
"cargo.autoreload" = true;
|
||||
};
|
||||
};
|
||||
tsserver = rec {
|
||||
filetypes = [ "javascript" "javascriptreact" "typescript" "typescriptreact" "vue" ];
|
||||
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;
|
||||
flags = {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./ollama.nix
|
||||
./typescript-tools.nix
|
||||
];
|
||||
}
|
||||
|
|
13
neovim/plugins/typescript-tools.nix
Normal file
13
neovim/plugins/typescript-tools.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue