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;
vimdiffAlias = true;
extraPackages = with pkgs; [
gcc
gnumake
gcc # treesitter
pyright
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
ripgrep # telescope
];
};
};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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