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,5 +1,26 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{
|
||||
options.modules.apps.neovim = {
|
||||
enablelanguages = lib.mkEnableOption "enable LSP languages";
|
||||
};
|
||||
|
||||
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
|
||||
];
|
||||
|
||||
config = {
|
||||
programs.neovim =
|
||||
{
|
||||
enable = true;
|
||||
|
|
@ -10,22 +31,22 @@
|
|||
wget
|
||||
nixpkgs-fmt
|
||||
tree-sitter
|
||||
|
||||
fd
|
||||
|
||||
cargo
|
||||
gcc
|
||||
go
|
||||
jdk22
|
||||
lua51Packages.lua
|
||||
nodejs
|
||||
php83Packages.composer
|
||||
php83
|
||||
opam
|
||||
(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;
|
||||
|
|
@ -33,4 +54,5 @@
|
|||
|
||||
extraLuaConfig = lib.fileContents ./init.lua;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@
|
|||
thunderbird = {
|
||||
enable = true;
|
||||
};
|
||||
neovim.enablelanguages = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@
|
|||
thunderbird = {
|
||||
enable = true;
|
||||
};
|
||||
neovim.enablelanguages = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@
|
|||
email = "noa@voorwaarts.nl";
|
||||
};
|
||||
apps.zsh.enable = true;
|
||||
apps.neovim.enablelanguages = true;
|
||||
};
|
||||
|
||||
services.syncthing = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue