Explorar el Código

Add display name for key ' '(<Space>) in whichkey (#179)

Key for ' '(<Space>) is displayed on the panel as 'SPC' by default.
However, it is displayed as blank instead of 'SPC'
when assigning 'which_key_display_names' variable without specifiying it.
chaeing hace 4 años
padre
commit
e91472c4b3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      vimscript/nv-whichkey/init.vim

+ 1 - 1
vimscript/nv-whichkey/init.vim

@@ -3,7 +3,7 @@
 " Timeout
 let g:which_key_timeout = 100
 
-let g:which_key_display_names = {'<CR>': '↵', '<TAB>': '⇆'}
+let g:which_key_display_names = {'<CR>': '↵', '<TAB>': '⇆', " ": 'SPC'}
 
 " Map leader to which_key
 nnoremap <silent> <leader> :silent <c-u> :silent WhichKey '<Space>'<CR>