🎨 ux(nvim): lualine disabled on zen mode and a new bind to do it manually
This commit is contained in:
parent
4024b40dec
commit
7471b10361
2 changed files with 23 additions and 1 deletions
|
@ -7,8 +7,17 @@ return {
|
||||||
plugins = {
|
plugins = {
|
||||||
scrollview = { enabled = false },
|
scrollview = { enabled = false },
|
||||||
satellite = { 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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,4 +8,17 @@ return {
|
||||||
opts.sections.lualine_y = { { "progress", separator = " ", padding = { left = 1, right = 1 } } }
|
opts.sections.lualine_y = { { "progress", separator = " ", padding = { left = 1, right = 1 } } }
|
||||||
opts.sections.lualine_z = { { "location", padding = { left = 1, right = 1 } } }
|
opts.sections.lualine_z = { { "location", padding = { left = 1, right = 1 } } }
|
||||||
end,
|
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",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue