1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-23 01:01:32 +08:00
SpaceVim/autoload/SpaceVim/layers/chinese.vim

25 lines
912 B
VimL
Raw Normal View History

"=============================================================================
" chinese.vim --- SpaceVim chinese layer
" Copyright (c) 2016-2017 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg at 163.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
2017-01-14 13:00:03 +08:00
function! SpaceVim#layers#chinese#plugins() abort
2018-07-12 20:57:06 +08:00
let plugins = [
\ ['yianwillis/vimcdoc', {'merged' : 0}],
\ ['ianva/vim-youdao-translater', { 'on_cmd' : ['Ydv','Ydc','Yde']}],
\ ]
if SpaceVim#layers#isLoaded('ctrlp')
call add(plugins, ['vimcn/ctrlp.cnx', {'merged' : 0}])
endif
return plugins
2017-01-14 13:00:03 +08:00
endfunction
function! SpaceVim#layers#chinese#config() abort
2018-07-12 20:57:06 +08:00
let g:_spacevim_mappings_space.x.g = {'name' : '+translate'}
call SpaceVim#mapping#space#def('nnoremap', ['x', 'g', 't'], 'Ydc', 'translate current word', 1)
2017-01-14 13:00:03 +08:00
endfunction