From 1377fabf14c78a063d67b0d171bb34150c7ce5cd Mon Sep 17 00:00:00 2001 From: Rene Descartes Date: Thu, 5 May 2022 10:25:50 -0600 Subject: [PATCH] XDG spec compliance, fzf now XDG path --- layers/+tools/fzf/packages.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layers/+tools/fzf/packages.vim b/layers/+tools/fzf/packages.vim index 914acd2a..068edd60 100644 --- a/layers/+tools/fzf/packages.vim +++ b/layers/+tools/fzf/packages.vim @@ -5,11 +5,15 @@ elseif g:spacevim.gui && !has('terminal') MP 'Yggdroot/LeaderF' else if g:spacevim.speed_up_via_timer - MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': function('spacevim#VimPlugPostUpdateHook', [v:false, './install --all']), 'on': [] } + if !executable('fzf') + MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': function('spacevim#VimPlugPostUpdateHook', [v:false, './install --all --xdg']), 'on': [] } + endif MP 'junegunn/fzf.vim', { 'on': [] } call timer_start(700, 'spacevim#defer#fzf') else - MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': function('spacevim#VimPlugPostUpdateHook', [v:false, './install --all']) } + if !executable('fzf') + MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': function('spacevim#VimPlugPostUpdateHook', [v:false, './install --all --xdg']) } + endif MP 'junegunn/fzf.vim' endif endif