diff --git a/.config/nvim/lua/plugins/extras/ui/zen-mode.lua b/.config/nvim/lua/plugins/extras/ui/zen-mode.lua index 0215376b..b5ec576f 100644 --- a/.config/nvim/lua/plugins/extras/ui/zen-mode.lua +++ b/.config/nvim/lua/plugins/extras/ui/zen-mode.lua @@ -7,8 +7,17 @@ return { plugins = { scrollview = { enabled = false }, satellite = { enabled = false }, - gitsigns = { enabled = false }, + gitsigns = { enabled = true }, + dropbar = { enabled = false }, + barbecue = { enabled = false }, }, + on_open = function(_) + vim.opt.laststatus = 0 + vim.o.winbar = "" + end, + on_close = function() + vim.opt.laststatus = 3 + end, }, }, { diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua index 73450e74..dda53ea4 100644 --- a/.config/nvim/lua/plugins/lualine.lua +++ b/.config/nvim/lua/plugins/lualine.lua @@ -8,4 +8,17 @@ return { opts.sections.lualine_y = { { "progress", separator = " ", padding = { left = 1, right = 1 } } } opts.sections.lualine_z = { { "location", padding = { left = 1, right = 1 } } } end, + keys = { + { + "uS", + function() + if vim.opt.laststatus:get() == 0 then + vim.opt.laststatus = 3 + else + vim.opt.laststatus = 0 + end + end, + desc = "Toggle Statusline", + }, + }, }