mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-22 05:19:48 +01:00
feat: add lib function to quickly mkOption mappings
This commit is contained in:
parent
e372fb1ccc
commit
475acf90cb
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,12 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
mkMappingOption = description: default:
|
||||
self.mkOption {
|
||||
type = self.types.nullOr self.types.str;
|
||||
inherit default description;
|
||||
};
|
||||
|
||||
# For forward compatibility.
|
||||
literalExpression = super.literalExpression or super.literalExample;
|
||||
literalDocBook = super.literalDocBook or super.literalExample;
|
||||
|
|
Loading…
Reference in a new issue