Skip to content

[mini.pick] how to override cmdheight for picker window? #1069

Closed Answered by echasnovski
jamestansx asked this question in Q&A
Discussion options

You must be logged in to vote

You can do that by creating an autocommand for MiniPickStart User event. Like this:

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jamestansx
Comment options

@echasnovski
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants