From 913e9ad1527e17eec87f32d1d256fd0bedafa273 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sat, 1 Jul 2017 20:45:24 +0800 Subject: [PATCH] Disable vim-luacomplete when if_lua is false close #682 --- autoload/SpaceVim/layers/lang/lua.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/SpaceVim/layers/lang/lua.vim b/autoload/SpaceVim/layers/lang/lua.vim index 244baba36..0f38efdb5 100644 --- a/autoload/SpaceVim/layers/lang/lua.vim +++ b/autoload/SpaceVim/layers/lang/lua.vim @@ -6,7 +6,7 @@ function! SpaceVim#layers#lang#lua#plugins() abort " Improved Lua 5.3 syntax and indentation support for Vim call add(plugins, ['tbastos/vim-lua', {'on_ft' : 'lua'}]) call add(plugins, ['WolfgangMehner/lua-support', {'on_ft' : 'lua'}]) - call add(plugins, ['SpaceVim/vim-luacomplete', {'on_ft' : 'lua'}]) + call add(plugins, ['SpaceVim/vim-luacomplete', {'on_ft' : 'lua', 'if' : has('lua')}]) return plugins endfunction