Some checks failed
Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
Detach Plugins / check (GitHub.vim) (push) Has been cancelled
Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
Detach Plugins / check (git.vim) (push) Has been cancelled
Detach Plugins / check (iedit.vim) (push) Has been cancelled
Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
Detach Plugins / check (vim-chat) (push) Has been cancelled
Detach Plugins / check (vim-cheat) (push) Has been cancelled
Detach Plugins / check (vim-todo) (push) Has been cancelled
Detach Plugins / check (xmake.vim) (push) Has been cancelled
test / Linux (nvim, nightly) (push) Has been cancelled
test / Linux (nvim, v0.3.8) (push) Has been cancelled
test / Linux (nvim, v0.4.0) (push) Has been cancelled
test / Linux (nvim, v0.4.2) (push) Has been cancelled
test / Linux (nvim, v0.4.3) (push) Has been cancelled
test / Linux (nvim, v0.4.4) (push) Has been cancelled
test / Linux (nvim, v0.5.0) (push) Has been cancelled
test / Linux (nvim, v0.5.1) (push) Has been cancelled
test / Linux (nvim, v0.6.0) (push) Has been cancelled
test / Linux (nvim, v0.6.1) (push) Has been cancelled
test / Linux (nvim, v0.7.0) (push) Has been cancelled
test / Linux (nvim, v0.7.2) (push) Has been cancelled
test / Linux (nvim, v0.8.0) (push) Has been cancelled
test / Linux (nvim, v0.8.1) (push) Has been cancelled
test / Linux (nvim, v0.8.2) (push) Has been cancelled
test / Linux (nvim, v0.8.3) (push) Has been cancelled
test / Linux (nvim, v0.9.0) (push) Has been cancelled
test / Linux (nvim, v0.9.1) (push) Has been cancelled
test / Linux (true, vim, v7.4.052) (push) Has been cancelled
test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
test / Linux (true, vim, v7.4.629) (push) Has been cancelled
test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
test / Linux (vim, nightly) (push) Has been cancelled
test / Linux (vim, v8.0.0184) (push) Has been cancelled
test / Linux (vim, v8.0.1453) (push) Has been cancelled
test / Linux (vim, v8.1.2269) (push) Has been cancelled
test / Linux (vim, v8.2.2434) (push) Has been cancelled
test / Linux (vim, v8.2.3995) (push) Has been cancelled
test / Windows (nvim, nightly) (push) Has been cancelled
test / Windows (nvim, v0.3.8) (push) Has been cancelled
test / Windows (nvim, v0.4.2) (push) Has been cancelled
test / Windows (nvim, v0.4.3) (push) Has been cancelled
test / Windows (nvim, v0.4.4) (push) Has been cancelled
test / Windows (nvim, v0.5.0) (push) Has been cancelled
test / Windows (nvim, v0.5.1) (push) Has been cancelled
test / Windows (nvim, v0.6.0) (push) Has been cancelled
test / Windows (nvim, v0.6.1) (push) Has been cancelled
test / Windows (nvim, v0.7.0) (push) Has been cancelled
test / Windows (nvim, v0.7.2) (push) Has been cancelled
test / Windows (nvim, v0.8.0) (push) Has been cancelled
test / Windows (nvim, v0.8.1) (push) Has been cancelled
test / Windows (nvim, v0.8.2) (push) Has been cancelled
test / Windows (nvim, v0.8.3) (push) Has been cancelled
test / Windows (nvim, v0.9.0) (push) Has been cancelled
test / Windows (nvim, v0.9.1) (push) Has been cancelled
test / Windows (vim, nightly) (push) Has been cancelled
test / Windows (vim, v7.4.1185) (push) Has been cancelled
test / Windows (vim, v7.4.1689) (push) Has been cancelled
test / Windows (vim, v8.0.0027) (push) Has been cancelled
test / Windows (vim, v8.0.1453) (push) Has been cancelled
test / Windows (vim, v8.1.2269) (push) Has been cancelled
test / Windows (vim, v8.2.2434) (push) Has been cancelled
test / Windows (vim, v8.2.3995) (push) Has been cancelled
docker / docker (push) Has been cancelled
mirror / check (coding) (push) Has been cancelled
mirror / check (gitee) (push) Has been cancelled
mirror / check (gitlab) (push) Has been cancelled
83 lines
3.4 KiB
VimL
83 lines
3.4 KiB
VimL
"=============================================================================
|
|
" tools.vim --- SpaceVim tools layer
|
|
" Copyright (c) 2016-2023 Wang Shidong & Contributors
|
|
" Author: Wang Shidong < wsdjeg@outlook.com >
|
|
" URL: https://spacevim.org
|
|
" License: GPLv3
|
|
"=============================================================================
|
|
|
|
if exists('s:CMP')
|
|
finish
|
|
endif
|
|
|
|
let s:CMP = SpaceVim#api#import('vim#compatible')
|
|
|
|
function! SpaceVim#layers#tools#plugins() abort
|
|
let plugins = []
|
|
call add(plugins, ['tpope/vim-scriptease', { 'merged' : 0}])
|
|
call add(plugins, ['lymslive/vimloo', { 'merged' : 0}])
|
|
call add(plugins, ['lymslive/vnote', { 'merged' : 0}])
|
|
call add(plugins, [g:_spacevim_root_dir . 'bundle/rainbow', { 'merged' : 0}])
|
|
call add(plugins, ['mbbill/fencview', { 'on_cmd' : 'FencAutoDetect'}])
|
|
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-cheat', { 'on_cmd' : 'Cheat'}])
|
|
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-unstack', { 'merged' : 0}])
|
|
call add(plugins, ['wsdjeg/Mysql.vim', { 'on_cmd' : 'SQLGetConnection'}])
|
|
call add(plugins, [g:_spacevim_root_dir . 'bundle/SourceCounter.vim', { 'on_cmd' : 'SourceCounter'}])
|
|
call add(plugins, [g:_spacevim_root_dir . 'bundle/calendar.vim',{ 'on_cmd' : 'Calendar'}])
|
|
call add(plugins, ['junegunn/limelight.vim', { 'on_cmd' : 'Limelight'}])
|
|
call add(plugins, ['junegunn/goyo.vim', { 'on_cmd' : 'Goyo', 'loadconf' : 1}])
|
|
call add(plugins, [g:_spacevim_root_dir . 'bundle/bookmarks.vim',
|
|
\ {'merged': 0,
|
|
\ 'loadconf_before' : 1}])
|
|
if s:CMP.has('python3')
|
|
call add(plugins, ['fedorenchik/VimCalc3', {'on_cmd' : 'Calc'}])
|
|
elseif s:CMP.has('python')
|
|
call add(plugins, ['gregsexton/VimCalc', {'on_cmd' : 'Calc'}])
|
|
endif
|
|
|
|
return plugins
|
|
endfunction
|
|
|
|
function! SpaceVim#layers#tools#config() abort
|
|
call SpaceVim#mapping#space#def('nnoremap', ['a', 'l'], 'Calendar', 'vim-calendar', 1)
|
|
call SpaceVim#mapping#space#def('nnoremap', ['e', 'a'], 'FencAutoDetect',
|
|
\ 'auto-detect-file-encoding', 1)
|
|
call SpaceVim#mapping#space#def('nnoremap', ['a', 'c'], 'Calc', 'vim-calculator', 1)
|
|
call SpaceVim#mapping#space#def('nnoremap', ['w', 'c'],
|
|
\ 'Goyo', 'centered-buffer-mode', 1)
|
|
call SpaceVim#mapping#space#def('nnoremap', ['w', 'C'],
|
|
\ 'ChooseWin | Goyo', 'choose-window-centered-buffer-mode', 1)
|
|
|
|
" bootmark key binding
|
|
nnoremap <silent> mm :<C-u>BookmarkToggle<Cr>
|
|
nnoremap <silent> mc :<C-u>BookmarkClear<Cr>
|
|
nnoremap <silent> mi :<C-u>BookmarkAnnotate<Cr>
|
|
nnoremap <silent> ma :<C-u>BookmarkShowAll<Cr>
|
|
nnoremap <silent> mn :<C-u>BookmarkNext<Cr>
|
|
nnoremap <silent> mp :<C-u>BookmarkPrev<Cr>
|
|
if maparg('<C-_>', 'v') ==# ''
|
|
vnoremap <silent> <C-_> <Esc>:Ydv<CR>
|
|
endif
|
|
if maparg('<C-_>', 'n') ==# ''
|
|
nnoremap <silent> <C-_> <Esc>:Ydc<CR>
|
|
endif
|
|
endfunction
|
|
function! SpaceVim#layers#tools#set_variable(var) abort
|
|
let g:bookmarks_sign_text = get(a:var, 'bookmarks_sign_text', '=>')
|
|
let g:bookmarks_sign_highlight = get(a:var, 'bookmarks_sign_highlight', 'Normal')
|
|
endfunction
|
|
|
|
function! SpaceVim#layers#tools#health() abort
|
|
call SpaceVim#layers#tools#plugins()
|
|
call SpaceVim#layers#tools#config()
|
|
return 1
|
|
endfunction
|
|
|
|
function! SpaceVim#layers#tools#loadable() abort
|
|
|
|
return 1
|
|
|
|
endfunction
|
|
|
|
" vim:set et sw=2 cc=80:
|