Merge pull request #264 from horriblename/no-str-to-luainline

Remove str to luaInline coercion
This commit is contained in:
raf 2024-04-27 11:32:46 +00:00 committed by GitHub
commit 79f0d87ad2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
}; };
/* /*