mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
feat(options): add defaultEditor
option (#589)
This commit is contained in:
parent
358f5732f2
commit
bfd1c5bace
3 changed files with 12 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue