fix blend option not working (#152)

This commit is contained in:
siduck 2022-12-27 09:42:08 +05:30
parent 99378dca8e
commit 1f353132de

View file

@ -89,7 +89,8 @@ M.table_to_str = function(tb)
local opts = ""
for optName, optVal in pairs(hlgroup_vals) do
local valueInStr = type(optVal) == "boolean" and " " .. tostring(optVal) or '"' .. optVal .. '"'
local valueInStr = ((type(optVal)) == "boolean" or type(optVal) == "number") and tostring(optVal)
or '"' .. optVal .. '"'
opts = opts .. optName .. "=" .. valueInStr .. ","
end