diff --git a/autoload/SpaceVim/layers/lang/lua.vim b/autoload/SpaceVim/layers/lang/lua.vim index 1d0f53f87..244baba36 100644 --- a/autoload/SpaceVim/layers/lang/lua.vim +++ b/autoload/SpaceVim/layers/lang/lua.vim @@ -6,9 +6,12 @@ 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'}]) return plugins endfunction function! SpaceVim#layers#lang#lua#config() abort - + augroup spacevim_lua + autocmd FileType lua setlocal omnifunc=luacomplete#complete + augroup END endfunction diff --git a/config/plugins/deoplete.vim b/config/plugins/deoplete.vim index 065d480d9..a5aa0a71f 100644 --- a/config/plugins/deoplete.vim +++ b/config/plugins/deoplete.vim @@ -16,6 +16,7 @@ let g:deoplete#omni#input_patterns.javascript = ['[^. \t0-9]\.\w*'] let g:deoplete#omni#input_patterns.php = '\h\w*\|[^. \t]->\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?' let g:deoplete#omni_patterns = get(g:, 'deoplete#omni_patterns', {}) let g:deoplete#omni_patterns.php = '->\|::' +let g:deoplete#omni_patterns.lua = '.' let g:deoplete#ignore_sources = {} let g:deoplete#ignore_sources.go = ['omni'] let g:deoplete#ignore_sources.c = ['omni'] diff --git a/config/plugins/neocomplete.vim b/config/plugins/neocomplete.vim index 66022ea7b..558571d26 100644 --- a/config/plugins/neocomplete.vim +++ b/config/plugins/neocomplete.vim @@ -37,6 +37,7 @@ endif let g:neocomplete#sources#omni#input_patterns.perl = '\h\w*->\h\w*\|\h\w*::' let g:neocomplete#sources#omni#input_patterns.java ='[^. \t0-9]\.\w*' +let g:neocomplete#sources#omni#input_patterns.lua ='[^. \t0-9]\.\w*' let g:neocomplete#force_omni_input_patterns = {} "let g:neocomplete#force_omni_input_patterns.java = '^\s*' " , : close popup and delete backword char.