XXiaoA/nvimrc

yamler

Closed this issue · 0 comments

nvimrc/lua/utils/yamler.lua

Lines 103 to 105 in 3c7fa62

if M.config[opt] then
return M.config[opt].value or M.config[opt]
end

If a options is false, return a table (wrong), use (maybe)

if M.config[opt] ~= nil then
            return (M.config[opt].value ~= nil and {M.config[opt].value} or {M.config[opt]})[1]
end