mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
lib: switch to mkLuaInline
This commit is contained in:
parent
5ea6272bee
commit
77d3cd5e0c
3 changed files with 9 additions and 7 deletions
|
@ -145,13 +145,13 @@ in {
|
|||
type = pluginsType;
|
||||
};
|
||||
|
||||
rawLua = lib.mkOptionType {
|
||||
name = "rawLua";
|
||||
check = val: isString val || val ? __raw;
|
||||
luaInline = lib.mkOptionType {
|
||||
name = "luaInline";
|
||||
check = x: lib.nvim.lua.isLuaInline x || builtins.isString x;
|
||||
merge = loc: defs: let
|
||||
val =
|
||||
if isString loc
|
||||
then {__raw = val;}
|
||||
then lib.generators.mkLuaInline loc
|
||||
else loc;
|
||||
in
|
||||
lib.mergeOneOption val defs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue