mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 00:05:57 +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.
|
# For forward compatibility.
|
||||||
literalExpression = super.literalExpression or super.literalExample;
|
literalExpression = super.literalExpression or super.literalExample;
|
||||||
literalDocBook = super.literalDocBook or super.literalExample;
|
literalDocBook = super.literalDocBook or super.literalExample;
|
||||||
|
|
Loading…
Reference in a new issue