1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

Add key binding to javascript layer

Add key binding to generate JSDoc annotation
This commit is contained in:
Seong Yong-ju 2018-01-13 02:20:56 +09:00
parent 75d5d91cfa
commit 0dfac6af19

View File

@ -133,6 +133,11 @@ function! s:on_ft() abort
\ 'rename symbol', 1)
endif
let g:_spacevim_mappings_space.l.g = {'name' : '+Generate'}
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'g', 'd'], 'JsDoc',
\ 'generate JSDoc', 1)
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'r'],
\ 'call SpaceVim#plugins#runner#open()', 'execute current file', 1)
endfunction