mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 04:00:03 +08:00
fix(edit): fix disabled_plugins option
close https://github.com/SpaceVim/SpaceVim/issues/4947
This commit is contained in:
parent
14f2de7911
commit
4ae96e3a57
@ -110,7 +110,7 @@ function! SpaceVim#layers#edit#plugins() abort
|
||||
\ [g:_spacevim_root_dir . 'bundle/vim-textobj-entire'],
|
||||
\ [g:_spacevim_root_dir . 'bundle/wildfire.vim',{'on_map' : '<Plug>(wildfire-'}],
|
||||
\ [g:_spacevim_root_dir . 'bundle/editorconfig-vim', { 'merged' : 0, 'if' : has('python') || has('python3')}],
|
||||
\ [g:_spacevim_root_dir . 'bundle/vim-jplus', { 'on_map' : '<Plug>(jplus' }],
|
||||
\ [g:_spacevim_root_dir . 'bundle/vim-jplus', { 'on_map' : '<Plug>(jplus', 'loadconf_before' : 1 }],
|
||||
\ [g:_spacevim_root_dir . 'bundle/tabular', { 'merged' : 0, 'on_cmd' : ['Tabularize']}],
|
||||
\ [g:_spacevim_root_dir . 'bundle/splitjoin.vim',{ 'on_cmd':['SplitjoinJoin', 'SplitjoinSplit'],'merged' : 0, 'loadconf' : 1}],
|
||||
\ ]
|
||||
@ -185,12 +185,6 @@ function! SpaceVim#layers#edit#config() abort
|
||||
vnoremap <C-SPACE> <Plug>(wildfire-water)
|
||||
let g:wildfire_objects = ["i'", 'i"', 'i)', 'i]', 'i}', 'ip', 'it']
|
||||
|
||||
" osyo-manga/vim-jplus {{{
|
||||
nmap <silent> J <Plug>(jplus)
|
||||
vmap <silent> J <Plug>(jplus)
|
||||
" }}}
|
||||
|
||||
|
||||
if s:CMP.has('python3') || s:CMP.has('python')
|
||||
nnoremap <silent> <F7> :MundoToggle<CR>
|
||||
else
|
||||
|
6
config/plugins_before/vim-jplus.vim
Normal file
6
config/plugins_before/vim-jplus.vim
Normal file
@ -0,0 +1,6 @@
|
||||
if index(get(g:, 'spacevim_disabled_plugins', []), 'vim-jplus') != 0
|
||||
" osyo-manga/vim-jplus {{{
|
||||
nmap <silent> J <Plug>(jplus)
|
||||
vmap <silent> J <Plug>(jplus)
|
||||
" }}}
|
||||
endif
|
Loading…
Reference in New Issue
Block a user