mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-09 06:55:30 +00:00
treewide: add global flag to disable default keymaps
This commit is contained in:
parent
8fbecab446
commit
9902836a90
31 changed files with 170 additions and 165 deletions
|
|
@ -32,10 +32,14 @@
|
|||
};
|
||||
};
|
||||
|
||||
mkMappingOption = description: default:
|
||||
mkMappingOption = enableDefault: description: default:
|
||||
mkOption {
|
||||
type = nullOr str;
|
||||
inherit default description;
|
||||
default =
|
||||
if enableDefault
|
||||
then default
|
||||
else null;
|
||||
inherit description;
|
||||
};
|
||||
|
||||
# Utility function that takes two attrsets:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue