feat(nvim): move language servers to each language's .nix file
This commit is contained in:
@@ -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
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ lib.my.makeHomePackageConfig {
|
|||||||
extraConfig = {
|
extraConfig = {
|
||||||
my.home.home.packages = with pkgs; [
|
my.home.home.packages = with pkgs; [
|
||||||
uv
|
uv
|
||||||
|
pyright
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user