mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
types/luaInline: do not coerce strings into luaInline
This commit is contained in:
parent
4b868d0de6
commit
500652d75e
1 changed files with 1 additions and 8 deletions
|
@ -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;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue