mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
lib/options/mkRaw: automatically convert example strings to rawLua type
This commit is contained in:
parent
f4b0b81ef9
commit
c04dda021b
1 changed files with 4 additions and 0 deletions
|
@ -158,6 +158,10 @@ rec {
|
|||
pluginDefault =
|
||||
if args.pluginDefault == null then null else lib.nixvim.literalLua args.pluginDefault;
|
||||
}
|
||||
// lib.optionalAttrs (args ? example) {
|
||||
example =
|
||||
if builtins.isString args.example then lib.nixvim.literalLua args.example else args.example;
|
||||
}
|
||||
);
|
||||
mkRaw = pluginDefault: description: mkRaw' { inherit pluginDefault description; };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue