mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Move neovim config into it's own module
This commit is contained in:
parent
a3cadd92c9
commit
e50ba91241
3 changed files with 19 additions and 8 deletions
|
|
@ -6,5 +6,6 @@
|
||||||
./theming.nix
|
./theming.nix
|
||||||
./ssh-client.nix
|
./ssh-client.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
|
./neovim.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
17
modules/home/neovim.nix
Normal file
17
modules/home/neovim.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options.myConfig.neovim.enable = lib.mkEnableOption "";
|
||||||
|
|
||||||
|
config = lib.mkIf config.myConfig.neovim.enable {
|
||||||
|
programs.neovim = {
|
||||||
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
viAlias = true;
|
||||||
|
vimAlias = true;
|
||||||
|
vimdiffAlias = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
theming.enable = true;
|
theming.enable = true;
|
||||||
ssh-client.enable = true;
|
ssh-client.enable = true;
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
|
neovim.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
|
|
@ -26,14 +27,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.neovim = {
|
|
||||||
enable = true;
|
|
||||||
defaultEditor = true;
|
|
||||||
viAlias = true;
|
|
||||||
vimAlias = true;
|
|
||||||
vimdiffAlias = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.clipmenu = {
|
services.clipmenu = {
|
||||||
enable = true;
|
enable = true;
|
||||||
launcher = "rofi";
|
launcher = "rofi";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue