Replies: 1 comment
-
Check out this section of the docs. Example config: 'nvim-lualine/lualine.nvim',
config = function()
require('lualine').setup({})
require('lualine').hide() -- hide on plugin loading
vim.o.laststatus = 2 -- whatever you want your default laststatus to be
-- Keymap to toggle `laststatus`
vim.keymap.set('n', '<leader>t', function()
if vim.o.laststatus == 2 then -- This should match whatever you want as your default laststatus that you put in your config above
vim.o.laststatus = 3
require('lualine').hide({ unhide = true }) -- Unhide lualine
else
require('lualine').hide() -- hide lualine
vim.o.laststatus = 2
end
end, { noremap = true, silent = true })
end, This example assumes you are using lazy.nvim as your plugin manager. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, how can I hide lualine by default ? My vimrc sets
laststatus=0
but afterrequire('lualine').setup({})
it setslaststatus=2
. I have a keymap that toggles laststatus and it starts hidden.Also, when I need lualine to be visible I want
laststatus=3
and notlaststatus=2
. How can I tell lualine to uselaststatus=3
instead of2
such that I do not have to manually type it in the cmdline?Beta Was this translation helpful? Give feedback.
All reactions