mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01: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
|
||||
./ssh-client.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;
|
||||
ssh-client.enable = true;
|
||||
git.enable = true;
|
||||
neovim.enable = true;
|
||||
};
|
||||
|
||||
programs.kitty = {
|
||||
|
|
@ -26,14 +27,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
};
|
||||
|
||||
services.clipmenu = {
|
||||
enable = true;
|
||||
launcher = "rofi";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue