Move neovim config into it's own module

This commit is contained in:
SebastianStork 2024-03-13 11:35:28 +01:00
parent a3cadd92c9
commit e50ba91241
3 changed files with 19 additions and 8 deletions

View file

@ -6,5 +6,6 @@
./theming.nix
./ssh-client.nix
./git.nix
./neovim.nix
];
}

17
modules/home/neovim.nix Normal file
View 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;
};
};
}