[mini.pick] how to override cmdheight
for picker window?
#1069
-
I notice that |
Beta Was this translation helpful? Give feedback.
Answered by
echasnovski
Jul 18, 2024
Replies: 1 comment 2 replies
-
You can do that by creating an autocommand for local set_cmdheight = function() vim.o.cmdheight = 2 end
vim.api.nvim_create_autocmd('User', { pattern = 'MiniPickStart', callback = set_cmdheight }) I thought about altering command line height only if it is zero, but always setting it to 1 seems like a good design because it enforces the biggest vertical space it can get. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
echasnovski
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can do that by creating an autocommand for
MiniPickStart
User
event. Like this:I thought about altering command line height only if it is zero, but always setting it to 1 seems like a good design because it enforces the biggest vertical space it can get.