From 7024e5754d390627bde6cc126e73ef272bb5bb93 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Mon, 3 Apr 2017 12:30:08 +0800 Subject: [PATCH] Fix plugin_before hooks --- autoload/SpaceVim/plugins.vim | 6 +++--- config/plugins_before/ultisnips.vim | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/autoload/SpaceVim/plugins.vim b/autoload/SpaceVim/plugins.vim index 94fe03d5e..02d6355df 100644 --- a/autoload/SpaceVim/plugins.vim +++ b/autoload/SpaceVim/plugins.vim @@ -16,9 +16,9 @@ function! s:load_plugins() abort call zvim#plug#add(plugin[0], plugin[1]) if zvim#plug#tap(split(plugin[0], '/')[-1]) && get(plugin[1], 'loadconf', 0 ) call zvim#plug#defind_hooks(split(plugin[0], '/')[-1]) - if get(plugin[1], 'loadconf_before', 0 ) - call zvim#plug#loadPluginBefore(split(plugin[0], '/')[-1]) - endif + endif + if zvim#plug#tap(split(plugin[0], '/')[-1]) && get(plugin[1], 'loadconf_before', 0 ) + call zvim#plug#loadPluginBefore(split(plugin[0], '/')[-1]) endif else call zvim#plug#add(plugin[0]) diff --git a/config/plugins_before/ultisnips.vim b/config/plugins_before/ultisnips.vim index 88ad8547c..74dfcb0f1 100644 --- a/config/plugins_before/ultisnips.vim +++ b/config/plugins_before/ultisnips.vim @@ -1,4 +1,6 @@ +" If you want :UltiSnipsEdit to split your window. +let g:UltiSnipsEditSplit="vertical" let g:UltiSnipsExpandTrigger='' +let g:UltiSnipsJumpBackwardTrigger="" let g:UltiSnipsJumpForwardTrigger='' -let g:UltiSnipsJumpBackwardTrigger='' -let g:UltiSnipsSnippetsDir='~/DotFiles/snippets' +let g:UltiSnipsSnippetsDir = '~/.SpaceVim.d/UltiSnips'