mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00:04 +08:00
Fix #144
This commit is contained in:
parent
cfe9de5e77
commit
6a67a7988b
@ -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
|
||||||
|
@ -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']
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user