feat: enable languages tag for neovim
This commit is contained in:
parent
a065e6dfc4
commit
12c8754584
4 changed files with 55 additions and 30 deletions
|
|
@ -1,36 +1,58 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
programs.neovim =
|
options.modules.apps.neovim = {
|
||||||
{
|
enablelanguages = lib.mkEnableOption "enable LSP languages";
|
||||||
enable = true;
|
};
|
||||||
extraPackages = with pkgs; [
|
|
||||||
ripgrep
|
|
||||||
luarocks
|
|
||||||
gnumake
|
|
||||||
wget
|
|
||||||
nixpkgs-fmt
|
|
||||||
tree-sitter
|
|
||||||
|
|
||||||
fd
|
imports = [
|
||||||
|
./cpu.nix
|
||||||
|
./vpn.nix
|
||||||
|
./tray.nix
|
||||||
|
./clock.nix
|
||||||
|
./power.nix
|
||||||
|
./memory.nix
|
||||||
|
./window.nix
|
||||||
|
./network.nix
|
||||||
|
./workspaces.nix
|
||||||
|
./temperature.nix
|
||||||
|
./wireplumber.nix
|
||||||
|
./spotify.nix
|
||||||
|
../../common/colors.nix
|
||||||
|
];
|
||||||
|
|
||||||
cargo
|
config = {
|
||||||
gcc
|
programs.neovim =
|
||||||
go
|
{
|
||||||
jdk22
|
enable = true;
|
||||||
lua51Packages.lua
|
extraPackages = with pkgs; [
|
||||||
nodejs
|
ripgrep
|
||||||
php83Packages.composer
|
luarocks
|
||||||
php83
|
gnumake
|
||||||
opam
|
wget
|
||||||
(python3.withPackages (python-pkgs: [
|
nixpkgs-fmt
|
||||||
python-pkgs.pip
|
tree-sitter
|
||||||
python-pkgs.black
|
fd
|
||||||
]))
|
|
||||||
];
|
|
||||||
defaultEditor = true;
|
|
||||||
viAlias = true;
|
|
||||||
vimAlias = true;
|
|
||||||
|
|
||||||
extraLuaConfig = lib.fileContents ./init.lua;
|
(lib.mkIf config.modules.neovim.enableLanguages cargo)
|
||||||
};
|
(lib.mkIf config.modules.neovim.enableLanguages gcc)
|
||||||
|
(lib.mkIf config.modules.neovim.enableLanguages go)
|
||||||
|
(lib.mkIf config.modules.neovim.enableLanguages jdk22)
|
||||||
|
(lib.mkIf config.modules.neovim.enableLanguages lua51Packages.lua)
|
||||||
|
(lib.mkIf config.modules.neovim.enableLanguages nodejs)
|
||||||
|
(lib.mkIf config.modules.neovim.enableLanguages php83Packages.composer)
|
||||||
|
(lib.mkIf config.modules.neovim.enableLanguages php83)
|
||||||
|
(lib.mkIf config.modules.neovim.enableLanguages opam)
|
||||||
|
(lib.mkIf config.modules.neovim.enableLanguages
|
||||||
|
(python3.withPackages (python-pkgs: [
|
||||||
|
python-pkgs.pip
|
||||||
|
python-pkgs.black
|
||||||
|
])))
|
||||||
|
];
|
||||||
|
defaultEditor = true;
|
||||||
|
viAlias = true;
|
||||||
|
vimAlias = true;
|
||||||
|
|
||||||
|
extraLuaConfig = lib.fileContents ./init.lua;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@
|
||||||
thunderbird = {
|
thunderbird = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
neovim.enablelanguages = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,7 @@
|
||||||
thunderbird = {
|
thunderbird = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
neovim.enablelanguages = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,7 @@
|
||||||
email = "noa@voorwaarts.nl";
|
email = "noa@voorwaarts.nl";
|
||||||
};
|
};
|
||||||
apps.zsh.enable = true;
|
apps.zsh.enable = true;
|
||||||
|
apps.neovim.enablelanguages = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue