-
Hi. |
Beta Was this translation helpful? Give feedback.
Answered by
fitrh
Feb 21, 2023
Replies: 1 comment 1 reply
-
I think since vim.api.nvim_set_keymap("n", "<Leader>s", "", {
callback = function()
local statusline = vim.o.statusline
require("lualine").hide({
place = { "statusline" },
unhide = statusline == "" or statusline == "%#Normal#",
})
end,
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MAXIIIMVS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think since
hide()
setsvim.o.statusline
to empty string withNormal
highlight, you can try something like this