From a7fbb812242d1223fcca8c0a270eb87a82f98f17 Mon Sep 17 00:00:00 2001 From: *Kim Zick Date: Thu, 8 Dec 2022 12:12:57 -0500 Subject: [PATCH] options: add viAlias and vimAlias (#75) --- modules/output.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/output.nix b/modules/output.nix index cce4aa38..516607b6 100644 --- a/modules/output.nix +++ b/modules/output.nix @@ -22,6 +22,22 @@ let in { options = { + 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. + ''; + }; + package = mkOption { type = types.package; default = pkgs.neovim-unwrapped; @@ -97,6 +113,7 @@ in normalizedPlugins = map (x: defaultPlugin // (if x ? plugin then x else { plugin = x; })) config.extraPlugins; neovimConfig = pkgs.neovimUtils.makeNeovimConfig ({ + inherit (config) viAlias vimAlias; # inherit customRC; plugins = normalizedPlugins; }