🎨 ux(nvim): lualine disabled on zen mode and a new bind to do it manually

This commit is contained in:
Sergio Laín 2023-11-17 14:41:22 +01:00
parent 4024b40dec
commit 7471b10361
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
2 changed files with 23 additions and 1 deletions

View file

@ -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,
},
},
{

View file

@ -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 = {
{
"<leader>uS",
function()
if vim.opt.laststatus:get() == 0 then
vim.opt.laststatus = 3
else
vim.opt.laststatus = 0
end
end,
desc = "Toggle Statusline",
},
},
}