Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcapivaro committed Jul 24, 2024
1 parent 2b9e210 commit 6aee7f2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lua/true-zen/minimalist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,17 @@ local function save_opts()
-- get the options from suitable_window
for user_opt, val in pairs(cnf.modes.minimalist.options) do
local opt = fn.gettabwinvar(currtab, suitable_window, "&" .. user_opt)
original_opts[user_opt] = (type(opt) == "number" and (opt == 1 and true or false) or opt)
if
type(opt) == "string"
or user_opt == "showtabline"
or user_opt == "cmdheight"
or user_opt == "laststatus"
or user_opt == "numberwidth"
then
original_opts[user_opt] = opt
else
original_opts[user_opt] = opt == 1
end
o[user_opt] = val
end

Expand Down

0 comments on commit 6aee7f2

Please sign in to comment.