Skip to content

Commit

Permalink
https://github.com/pocco81/true-zen.nvim/issues/141
Browse files Browse the repository at this point in the history
  • Loading branch information
agaro committed Aug 22, 2024
1 parent 2b9e210 commit cc68634
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/true-zen/minimalist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,12 @@ function M.off()

for k, v in pairs(original_opts) do
if k ~= "highlights" then
o[k] = v
-- o[k] = v
if type(v) == 'boolean' and type(o[k]) == 'number' then -- error about showmode
o[k] = v and 1 or 0
elseif type(v) == 'boolean' and type(o[k]) == 'string' then -- error about signcolumn
o[k] = v and 'on' or 'off' -- v and 'yes' or 'no'
end
end
end

Expand Down

0 comments on commit cc68634

Please sign in to comment.