1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00

feat(dash.vim): add devdocs support with (devdocs.vim) (#2875)

keybinding: (SPC D b) search word on devdocs.io
[rhysd/devdocs.vim](https://github.com/rhysd/devdocs.vim)
This commit is contained in:
Steve Lemuel 2019-06-08 10:16:04 +08:00 committed by Wang Shidong
parent bc7f2b270a
commit 82aaec57a8

View File

@ -16,6 +16,9 @@ function! SpaceVim#layers#tools#dash#plugins() abort
\ ['rizzatti/dash.vim', {
\ 'on_map': { 'n': ['<Plug>DashSearch', '<Plug>DashGlobalSearch'] }
\ }],
\ ['rhysd/devdocs.vim', {
\ 'on_map': { 'n': ['<Plug>(devdocs-under-cursor)'] }
\ }],
\ ]
endfunction
@ -28,6 +31,8 @@ function! SpaceVim#layers#tools#dash#config() abort
"" }}}
let g:_spacevim_mappings_space.D = { 'name' : '+Dash' }
call SpaceVim#mapping#space#def('nmap', ['D', 'b'],
\ '<Plug>(devdocs-under-cursor)', 'search word on devdocs.io', 0)
call SpaceVim#mapping#space#def('nmap', ['D', 'd'],
\ '<Plug>DashSearch', 'search word under cursor', 0)
call SpaceVim#mapping#space#def('nmap', ['D', 'D'],