Skip to content

Commit bdf5ca7

Browse files
committed
Updated zen-mode setup to hide, restore status bar.
1 parent 61f5d23 commit bdf5ca7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

dot/neovim/lua/ide.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,11 @@ require("zen-mode").setup({
203203
},
204204
on_open = function(win)
205205
vim.opt.wrap = true
206+
vim.opt.laststatus = 0
206207
end,
207208
on_close = function()
208209
vim.opt.wrap = false
210+
vim.opt.laststatus = 2
209211
end,
210212
})
211213
vim.api.nvim_set_keymap("n", "<Leader>w", ":ZenMode<CR>", { noremap = true, silent = true, desc = "Write mode" })

0 commit comments

Comments
 (0)