types/luaInline: do not coerce strings into luaInline

This commit is contained in:
Ching Pei Yang 2024-04-27 02:12:35 +02:00
parent 4b868d0de6
commit 500652d75e
1 changed files with 1 additions and 8 deletions

View File

@ -66,14 +66,7 @@ in {
luaInline = lib.mkOptionType { luaInline = lib.mkOptionType {
name = "luaInline"; name = "luaInline";
check = x: lib.nvim.lua.isLuaInline x || builtins.isString x; check = x: lib.nvim.lua.isLuaInline x;
merge = loc: defs: let
val =
if isString loc
then lib.generators.mkLuaInline loc
else loc;
in
lib.mergeOneOption val defs;
}; };
/* /*