From 4ebcd961c7175d8a0816b181be528b4953dca0d7 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Fri, 22 Apr 2022 21:04:00 +0800 Subject: [PATCH] fix(smoothie): fix smoothie requirements --- autoload/SpaceVim/layers/core.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/SpaceVim/layers/core.vim b/autoload/SpaceVim/layers/core.vim index 47db7c87f..ff8577482 100644 --- a/autoload/SpaceVim/layers/core.vim +++ b/autoload/SpaceVim/layers/core.vim @@ -56,7 +56,10 @@ function! SpaceVim#layers#core#plugins() abort call add(plugins, [g:_spacevim_root_dir . 'bundle/nvim-yarp', {'merged': 0}]) call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-hug-neovim-rpc', {'merged': 0}]) endif - call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-smoothie', {'merged': 0}]) + if has('timers') && has('float') + " vim-smoothie needs +timers and +float + call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-smoothie', {'merged': 0}]) + endif if g:spacevim_filemanager ==# 'nerdtree' call add(plugins, [g:_spacevim_root_dir . 'bundle/nerdtree', { 'merged' : 0, \ 'loadconf' : 1}])