diff --git a/wrappers/hm.nix b/wrappers/hm.nix
index f8bb2223..443f1533 100644
--- a/wrappers/hm.nix
+++ b/wrappers/hm.nix
@@ -18,7 +18,10 @@ in {
default = {};
type = types.submodule ([
{
- options.enable = mkEnableOption "nixvim";
+ options = {
+ enable = mkEnableOption "nixvim";
+ defaultEditor = mkEnableOption "Set nixvim as the default editor";
+ };
}
]
++ shared.topLevelModules);
@@ -34,7 +37,7 @@ in {
xdg.configFile = files;
})
{
- inherit (cfg) warnings assertions;
+ inherit (cfg) warnings assertions defaultEditor;
}
]);
}
diff --git a/wrappers/modules/output.nix b/wrappers/modules/output.nix
index 9c25ee78..3628bb68 100644
--- a/wrappers/modules/output.nix
+++ b/wrappers/modules/output.nix
@@ -31,7 +31,7 @@ in {
type = types.bool;
default = false;
description = ''
- Symlink vi to nvim binary.
+ Symlink `vi` to `nvim` binary.
'';
};
@@ -39,7 +39,7 @@ in {
type = types.bool;
default = false;
description = ''
- Symlink vim to nvim binary.
+ Symlink `vim` to `nvim` binary.
'';
};
diff --git a/wrappers/nixos.nix b/wrappers/nixos.nix
index 2c7ce8ef..1f672b7b 100644
--- a/wrappers/nixos.nix
+++ b/wrappers/nixos.nix
@@ -18,7 +18,10 @@ in {
default = {};
type = types.submodule ([
{
- options.enable = mkEnableOption "nixvim";
+ options = {
+ enable = mkEnableOption "nixvim";
+ defaultEditor = mkEnableOption "Set nixvim as the default editor";
+ };
config.wrapRc = mkForce true;
}
]
@@ -36,7 +39,7 @@ in {
environment.variables."VIM" = "/etc/nvim";
})
{
- inherit (cfg) warnings assertions;
+ inherit (cfg) warnings assertions defaultEditor;
}
]);
}