Skip to content

Commit 1377fab

Browse files
XDG spec compliance, fzf now XDG path
1 parent 953d9ba commit 1377fab

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

layers/+tools/fzf/packages.vim

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ elseif g:spacevim.gui && !has('terminal')
55
MP 'Yggdroot/LeaderF'
66
else
77
if g:spacevim.speed_up_via_timer
8-
MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': function('spacevim#VimPlugPostUpdateHook', [v:false, './install --all']), 'on': [] }
8+
if !executable('fzf')
9+
MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': function('spacevim#VimPlugPostUpdateHook', [v:false, './install --all --xdg']), 'on': [] }
10+
endif
911
MP 'junegunn/fzf.vim', { 'on': [] }
1012
call timer_start(700, 'spacevim#defer#fzf')
1113
else
12-
MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': function('spacevim#VimPlugPostUpdateHook', [v:false, './install --all']) }
14+
if !executable('fzf')
15+
MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': function('spacevim#VimPlugPostUpdateHook', [v:false, './install --all --xdg']) }
16+
endif
1317
MP 'junegunn/fzf.vim'
1418
endif
1519
endif

0 commit comments

Comments
 (0)