vim-which-key
vim-which-key copied to clipboard
```let g:which_key_centered = 1``` doesn't make the keybind list centered
init.vim code:
let g:which_key_centered = 1
let g:which_key_vertical = 1
let g:which_key_map = {}
let g:which_key_map['LeaderF'] = {
\ 'name': '+LeaderF',
\ 'f' : ['<cmd>Leaderf file\<cr>', 'current-directory'],
\ 'g' : ['<cmd>call SearchGitRepo()\<cr>', 'git-repository'],
\ 'p' : ['<cmd>call SearchP4Client()\<cr>', 'perforce-client'],
\ 'c' : ['<cmd>call SearchCmakeSourceDir()\<cr>', 'cmake-source'],
\ }
nnoremap <C-P> <cmd>WhichKey! g:which_key_map['LeaderF']<cr>
this shows like: https://raw.githubusercontent.com/etorth/imghost/e161a89cd164f2e4400baa1f36c1ab923630961c/2021.07.21.13.06.12.730695200.png the keybind is not centered, as you see
I suppose the problem is g:which_key_vertical=1 . I was able to achieve the result you wanted by setting it to 0.
