vim-which-key icon indicating copy to clipboard operation
vim-which-key copied to clipboard

```let g:which_key_centered = 1``` doesn't make the keybind list centered

Open etorth opened this issue 4 years ago • 1 comments

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

etorth avatar Jul 21 '21 20:07 etorth

I suppose the problem is g:which_key_vertical=1 . I was able to achieve the result you wanted by setting it to 0. image

BrotifyPacha avatar Dec 20 '21 06:12 BrotifyPacha