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