From 9fe6fa7f44d8672f1824620192fe585edee14fcc Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Sat, 18 Aug 2018 04:50:49 +0200 Subject: [PATCH] neovim: add vi{,m}Alias options --- modules/programs/neovim.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/modules/programs/neovim.nix b/modules/programs/neovim.nix index d0f100262..2e9cbca67 100644 --- a/modules/programs/neovim.nix +++ b/modules/programs/neovim.nix @@ -13,6 +13,22 @@ in programs.neovim = { enable = mkEnableOption "Neovim"; + viAlias = mkOption { + type = types.bool; + default = false; + description = '' + Symlink `vi` to `nvim` binary. + ''; + }; + + vimAlias = mkOption { + type = types.bool; + default = false; + description = '' + Symlink `vim` to `nvim` binary. + ''; + }; + withPython = mkOption { type = types.bool; default = true; @@ -89,7 +105,7 @@ in inherit (cfg) extraPython3Packages withPython3 extraPythonPackages withPython - withRuby configure; + withRuby viAlias vimAlias configure; }) ]; };