From 6aee7f2c32b8fabd4ab31b284e77f233f94d3e20 Mon Sep 17 00:00:00 2001 From: mrcapivaro Date: Wed, 24 Jul 2024 16:58:03 -0300 Subject: [PATCH] fix: #125 --- lua/true-zen/minimalist.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lua/true-zen/minimalist.lua b/lua/true-zen/minimalist.lua index 9a7a9ed..7030e62 100644 --- a/lua/true-zen/minimalist.lua +++ b/lua/true-zen/minimalist.lua @@ -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