1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:40:06 +08:00
This commit is contained in:
wsdjeg 2017-01-24 22:47:48 +08:00
parent cfe9de5e77
commit 6a67a7988b
3 changed files with 6 additions and 1 deletions

View File

@ -6,9 +6,12 @@ function! SpaceVim#layers#lang#lua#plugins() abort
" Improved Lua 5.3 syntax and indentation support for Vim " Improved Lua 5.3 syntax and indentation support for Vim
call add(plugins, ['tbastos/vim-lua', {'on_ft' : 'lua'}]) call add(plugins, ['tbastos/vim-lua', {'on_ft' : 'lua'}])
call add(plugins, ['WolfgangMehner/lua-support', {'on_ft' : 'lua'}]) call add(plugins, ['WolfgangMehner/lua-support', {'on_ft' : 'lua'}])
call add(plugins, ['SpaceVim/vim-luacomplete', {'on_ft' : 'lua'}])
return plugins return plugins
endfunction endfunction
function! SpaceVim#layers#lang#lua#config() abort function! SpaceVim#layers#lang#lua#config() abort
augroup spacevim_lua
autocmd FileType lua setlocal omnifunc=luacomplete#complete
augroup END
endfunction endfunction

View File

@ -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#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 = get(g:, 'deoplete#omni_patterns', {})
let g:deoplete#omni_patterns.php = '->\|::' let g:deoplete#omni_patterns.php = '->\|::'
let g:deoplete#omni_patterns.lua = '.'
let g:deoplete#ignore_sources = {} let g:deoplete#ignore_sources = {}
let g:deoplete#ignore_sources.go = ['omni'] let g:deoplete#ignore_sources.go = ['omni']
let g:deoplete#ignore_sources.c = ['omni'] let g:deoplete#ignore_sources.c = ['omni']

View File

@ -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.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.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 = {}
"let g:neocomplete#force_omni_input_patterns.java = '^\s*' "let g:neocomplete#force_omni_input_patterns.java = '^\s*'
" <C-h>, <BS>: close popup and delete backword char. " <C-h>, <BS>: close popup and delete backword char.