mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 14:55:59 +01:00
modules/core: inherit literalExpression from lib
This commit is contained in:
parent
c1f449137f
commit
3fde6a4bf3
1 changed files with 9 additions and 7 deletions
|
@ -4,7 +4,7 @@
|
|||
...
|
||||
}:
|
||||
with builtins; let
|
||||
inherit (lib) mkOption types mapAttrsFlatten filterAttrs optionalString getAttrs;
|
||||
inherit (lib) mkOption types mapAttrsFlatten filterAttrs optionalString getAttrs literalExpression;
|
||||
inherit (lib) nvim;
|
||||
inherit (nvim.lua) toLuaObject;
|
||||
|
||||
|
@ -125,12 +125,14 @@ in {
|
|||
type = with types; listOf unspecified;
|
||||
internal = true;
|
||||
default = [];
|
||||
example = lib.literalExpression [
|
||||
{
|
||||
assertion = false;
|
||||
message = "you can't enable this for that reason";
|
||||
}
|
||||
];
|
||||
example = literalExpression ''
|
||||
[
|
||||
{
|
||||
assertion = false;
|
||||
message = "you can't enable this for that reason";
|
||||
}
|
||||
]
|
||||
'';
|
||||
};
|
||||
|
||||
warnings = mkOption {
|
||||
|
|
Loading…
Reference in a new issue