fix(nvim): handle cmdheight=0 woes w/ macros
This commit is contained in:
parent
ca69e82ff3
commit
0387f81bce
@ -5,6 +5,23 @@ M.setup = function()
|
||||
vim.api.nvim_create_autocmd('BufWritePre', {
|
||||
command = '%s/\\s\\+$//e',
|
||||
})
|
||||
|
||||
-- NOTE: Handles issues with cmdheight=0, waiting for
|
||||
-- https://github.com/neovim/neovim/pull/18961
|
||||
-- to be merged
|
||||
vim.api.nvim_create_autocmd('RecordingEnter', {
|
||||
pattern = '*',
|
||||
callback = function()
|
||||
vim.opt_local.cmdheight = 1
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd('RecordingLeave', {
|
||||
pattern = '*',
|
||||
callback = function()
|
||||
vim.opt_local.cmdheight = 0
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
|
Loading…
Reference in New Issue
Block a user