feat(nvim): move language servers to each language's .nix file

This commit is contained in:
2025-08-09 20:14:31 +08:00
parent 90cd4bdd84
commit e958163479
8 changed files with 18 additions and 26 deletions

View File

@@ -26,32 +26,9 @@ lib.my.makeHomeProgramConfig {
vimAlias = true; vimAlias = true;
vimdiffAlias = true; vimdiffAlias = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
gcc gcc # treesitter
gnumake
pyright ripgrep # telescope
clang-tools
rust-analyzer
pest-ide-tools
nixd
gotools
gopls
stylua
lua-language-server
nodePackages.typescript-language-server
vue-language-server
typescript
nodejs
java-language-server
ripgrep
]; ];
}; };
}; };

View File

@@ -14,6 +14,10 @@ lib.my.makeHomePackageConfig {
"go" "go"
]; ];
extraConfig = { extraConfig = {
my.home.home.packages = with pkgs; [
gotools
gopls
];
my.persist.homeDirs = [ my.persist.homeDirs = [
"go" "go"
]; ];

View File

@@ -15,6 +15,7 @@ lib.my.makeSwitch {
config' = { config' = {
my.home.home.packages = with pkgs; [ my.home.home.packages = with pkgs; [
openjdk24 openjdk24
java-language-server
]; ];
}; };
} }

View File

@@ -16,8 +16,10 @@ lib.my.makeSwitch {
my.home = { my.home = {
home.packages = with pkgs; [ home.packages = with pkgs; [
nodejs nodejs
typescript typescript
nodePackages.typescript-language-server
vue-language-server
]; ];
home.file.".npmrc".text = '' home.file.".npmrc".text = ''
prefix = ''${HOME}/.npm-global prefix = ''${HOME}/.npm-global

View File

@@ -15,6 +15,8 @@ lib.my.makeSwitch {
config' = { config' = {
my.home.home.packages = with pkgs; [ my.home.home.packages = with pkgs; [
luajit luajit
stylua
lua-language-server
]; ];
}; };
} }

View File

@@ -16,6 +16,7 @@ lib.my.makeHomePackageConfig {
extraConfig = { extraConfig = {
my.home.home.packages = with pkgs; [ my.home.home.packages = with pkgs; [
uv uv
pyright
]; ];
}; };
} }

View File

@@ -21,8 +21,11 @@ lib.my.makeSwitch {
"rust-src" "rust-src"
"rustc" "rustc"
"rustfmt" "rustfmt"
"rust-analyzer"
]) ])
evcxr # rust repl evcxr # rust repl
pest-ide-tools
]; ];
home.file.".cargo/config.toml".text = '' home.file.".cargo/config.toml".text = ''
[source.crates-io] [source.crates-io]

View File

@@ -61,6 +61,8 @@ lib.my.makeSwitch {
!include ${config.sops.secrets.nix-github-token.path} !include ${config.sops.secrets.nix-github-token.path}
''; '';
my.home.home.packages = [ pkgs.nixd ];
# uncomment to enable auto gc # uncomment to enable auto gc
/* /*
nix.gc = { nix.gc = {