mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-13 23:27:59 +08:00
17 lines
536 B
VimL
17 lines
536 B
VimL
"=============================================================================
|
|
" gd.vim --- gd key binding
|
|
" Copyright (c) 2016-2019 Wang Shidong & Contributors
|
|
" Author: Wang Shidong < wsdjeg at 163.com >
|
|
" URL: https://spacevim.org
|
|
" License: GPLv3
|
|
"=============================================================================
|
|
|
|
let s:gd = {}
|
|
function! SpaceVim#mapping#gd#add(ft, func) abort
|
|
call extend(s:gd,{a:ft : a:func})
|
|
endfunction
|
|
|
|
function! SpaceVim#mapping#gd#get() abort
|
|
return get(s:gd, &filetype, '')
|
|
endfunction
|