"============================================================================= " dash.vim --- tools#dash layer file for SpaceVim " Copyright (c) 2016-2023 Wang Shidong & Contributors " Author: Wang Shidong < wsdjeg@outlook.com > " URL: https://spacevim.org " License: GPLv3 "============================================================================= "" " @section tools#dash, layers-tools-dash " @parentsection layers " This layer provides Dash integration for SpaceVim function! SpaceVim#layers#tools#dash#plugins() abort return [ \ ['rizzatti/dash.vim', { \ 'on_map': { 'n': ['DashSearch', 'DashGlobalSearch'] } \ }], \ ['rhysd/devdocs.vim', { \ 'on_map': { 'n': ['(devdocs-under-cursor)'] } \ }], \ ] endfunction function! SpaceVim#layers#tools#dash#config() abort "" rizzatti/dash.vim {{{ " Allows configuration of mappings between Vim filetypes and Dash's docsets. let g:dash_map = extend({ \ 'java': ['java', 'android', 'javafx', 'spring', 'javadoc'], \ }, get(g:, 'dash_map', {})) "" }}} let g:_spacevim_mappings_space.D = { 'name' : '+Dash' } call SpaceVim#mapping#space#def('nmap', ['D', 'b'], \ '(devdocs-under-cursor)', 'search word on devdocs.io', 0) call SpaceVim#mapping#space#def('nmap', ['D', 'd'], \ 'DashSearch', 'search word under cursor', 0) call SpaceVim#mapping#space#def('nmap', ['D', 'D'], \ 'DashGlobalSearch', 'search word under cursor in all docs', 0) endfunction function! SpaceVim#layers#tools#dash#health() abort call SpaceVim#layers#tools#dash#plugins() call SpaceVim#layers#tools#dash#config() return 1 endfunction