mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 05:44:25 +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
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue