diff --git a/autoload/SpaceVim/layers/checkers.vim b/autoload/SpaceVim/layers/checkers.vim index b18a49adb..5af63f84f 100644 --- a/autoload/SpaceVim/layers/checkers.vim +++ b/autoload/SpaceVim/layers/checkers.vim @@ -133,7 +133,7 @@ function! SpaceVim#layers#checkers#config() abort endif endif elseif g:spacevim_lint_engine ==# 'ale' && SpaceVim#layers#isLoaded('core#statusline') - autocmd User ALELint + autocmd User ALELintPost \ let &l:statusline = SpaceVim#layers#core#statusline#get(1) endif augroup END diff --git a/autoload/SpaceVim/layers/chinese.vim b/autoload/SpaceVim/layers/chinese.vim index bff3f42eb..76ec2a4e4 100644 --- a/autoload/SpaceVim/layers/chinese.vim +++ b/autoload/SpaceVim/layers/chinese.vim @@ -10,7 +10,7 @@ function! SpaceVim#layers#chinese#plugins() abort let plugins = [ \ ['yianwillis/vimcdoc' , {'merged' : 0}], - \ ['voldikss/vim-translate-me' , {'merged' : 0, 'on_cmd' : ['Translate']}], + \ ['voldikss/vim-translator' , {'merged' : 0, 'on_cmd' : ['Translate', 'TranslateW', 'TranslateR', 'TranslateX']}], \ ['wsdjeg/ChineseLinter.vim' , {'merged' : 0, 'on_cmd' : 'CheckChinese', 'on_ft' : ['markdown', 'text']}], \ ] if SpaceVim#layers#isLoaded('ctrlp') diff --git a/autoload/SpaceVim/layers/edit.vim b/autoload/SpaceVim/layers/edit.vim index df3fdf067..7c652b53d 100644 --- a/autoload/SpaceVim/layers/edit.vim +++ b/autoload/SpaceVim/layers/edit.vim @@ -33,7 +33,7 @@ function! SpaceVim#layers#edit#plugins() abort \ [g:_spacevim_root_dir . 'bundle/vim-jplus', { 'on_map' : '(jplus' }], \ [g:_spacevim_root_dir . 'bundle/tabular', { 'merged' : 0}], \ [g:_spacevim_root_dir . 'bundle/vim-better-whitespace', { 'on_cmd' : ['StripWhitespace', 'ToggleWhitespace', 'DisableWhitespace', 'EnableWhitespace']}], - \ ['andrewradev/splitjoin.vim',{ 'merged' : 0, 'loadconf' : 1}], + \ ['andrewradev/splitjoin.vim',{ 'on_cmd':['SplitjoinJoin', 'SplitjoinSplit'],'merged' : 0, 'loadconf' : 1}], \ ] if executable('fcitx') call add(plugins,[g:_spacevim_root_dir . 'bundle/fcitx.vim', { 'on_event' : 'InsertEnter'}]) diff --git a/autoload/SpaceVim/layers/lang/markdown.vim b/autoload/SpaceVim/layers/lang/markdown.vim index 6728cdbcd..0c5795731 100644 --- a/autoload/SpaceVim/layers/lang/markdown.vim +++ b/autoload/SpaceVim/layers/lang/markdown.vim @@ -38,7 +38,7 @@ function! SpaceVim#layers#lang#markdown#plugins() abort call SpaceVim#logger#error('npm or yarn is required to build iamcco/markdown-preview and neoclide/vim-node-rpc') endif call add(plugins, ['iamcco/markdown-preview.nvim', - \ { 'on_ft' : 'markdown', + \ { 'on_cmd' : 'MarkdownPreview', \ 'depends': 'open-browser.vim', \ 'build' : 'cd app & ' . s:node_pkgm . ' install' }]) if !has('nvim') diff --git a/autoload/SpaceVim/layers/tools.vim b/autoload/SpaceVim/layers/tools.vim index 831e989ae..4d8131e88 100644 --- a/autoload/SpaceVim/layers/tools.vim +++ b/autoload/SpaceVim/layers/tools.vim @@ -32,6 +32,8 @@ function! SpaceVim#layers#tools#plugins() abort \ 'BookmarkAnnotate', \ 'BookmarkNext', \ 'BookmarkPrev', + \ 'BookmarkClear', + \ 'BookmarkClearAll' \ ], \ 'loadconf_before' : 1}]) if s:CMP.has('python') diff --git a/autoload/SpaceVim/layers/ui.vim b/autoload/SpaceVim/layers/ui.vim index e3c6833ba..f044fcc8f 100644 --- a/autoload/SpaceVim/layers/ui.vim +++ b/autoload/SpaceVim/layers/ui.vim @@ -22,7 +22,7 @@ function! SpaceVim#layers#ui#plugins() abort \ [g:_spacevim_root_dir . 'bundle/tagbar', {'loadconf' : 1, 'merged' : 0}], \ [g:_spacevim_root_dir . 'bundle/tagbar-makefile.vim', {'merged': 0}], \ [g:_spacevim_root_dir . 'bundle/tagbar-proto.vim', {'merged': 0}], - \ [g:_spacevim_root_dir . 'bundle/vim-choosewin', {'merged' : 0}], + \ [g:_spacevim_root_dir . 'bundle/vim-choosewin', {'on_cmd' : 'ChooseWin', 'merged' : 0}], \ [g:_spacevim_root_dir . 'bundle/vim-startify', {'loadconf' : 1, 'merged' : 0}], \ ] if !SpaceVim#layers#isLoaded('core#statusline')