mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-14 06:48:00 +08:00
32 lines
1.0 KiB
VimL
32 lines
1.0 KiB
VimL
"=============================================================================
|
|
" operator.vim --- SpaceVim operator layer
|
|
" Copyright (c) 2016-2022 Wang Shidong & Contributors
|
|
" Author: Wang Shidong < wsdjeg@outlook.com >
|
|
" URL: https://spacevim.org
|
|
" License: GPLv3
|
|
"=============================================================================
|
|
|
|
""
|
|
" @section operator, layers-operator
|
|
" @parentsection layers
|
|
" With this layer, you can confirm that text is yanked correctly and see
|
|
" yanked text by highlighting.
|
|
|
|
function! SpaceVim#layers#operator#plugins() abort
|
|
let plugins = []
|
|
call add(plugins, ['kana/vim-operator-user', { 'merged' : 0 }])
|
|
call add(plugins, ['haya14busa/vim-operator-flashy', { 'merged' : 0 }])
|
|
return plugins
|
|
endfunction
|
|
|
|
function! SpaceVim#layers#operator#config() abort
|
|
map y <Plug>(operator-flashy)
|
|
nmap Y <Plug>(operator-flashy)$
|
|
endfunction
|
|
|
|
function! SpaceVim#layers#operator#health() abort
|
|
call SpaceVim#layers#operator#plugins()
|
|
call SpaceVim#layers#operator#config()
|
|
return 1
|
|
endfunction
|