mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 08:50:06 +08:00
Fix php completion
This commit is contained in:
parent
40078d2009
commit
78872629fd
@ -34,7 +34,6 @@ function! SpaceVim#autocmds#init() abort
|
|||||||
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
|
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
|
||||||
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
|
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
|
||||||
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
|
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
|
||||||
autocmd FileType php setlocal omnifunc=phpcomplete_extended#CompletePHP
|
|
||||||
autocmd BufEnter *
|
autocmd BufEnter *
|
||||||
\ if empty(&buftype) && has('nvim') && &filetype != 'help'
|
\ if empty(&buftype) && has('nvim') && &filetype != 'help'
|
||||||
\| nnoremap <silent><buffer> <C-]> :call MyTagfunc()<CR>
|
\| nnoremap <silent><buffer> <C-]> :call MyTagfunc()<CR>
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
function! SpaceVim#layers#lang#plugins() abort
|
function! SpaceVim#layers#lang#plugins() abort
|
||||||
let plugins = [
|
let plugins = [
|
||||||
\ ['Shougo/neosnippet.vim', { 'on_i' : 1 , 'on_ft' : 'neosnippet', 'loadconf' : 1, 'on_cmd' : 'NeoSnippetEdit'}],
|
\ ['Shougo/neosnippet.vim', { 'on_i' : 1 , 'on_ft' : 'neosnippet', 'loadconf' : 1, 'on_cmd' : 'NeoSnippetEdit'}],
|
||||||
\ ['m2mdas/phpcomplete-extended', { 'on_ft' : 'php'}],
|
|
||||||
\ ['groenewege/vim-less', { 'on_ft' : ['less']}],
|
\ ['groenewege/vim-less', { 'on_ft' : ['less']}],
|
||||||
\ ['cakebaker/scss-syntax.vim', { 'on_ft' : ['scss','sass']}],
|
\ ['cakebaker/scss-syntax.vim', { 'on_ft' : ['scss','sass']}],
|
||||||
\ ['hail2u/vim-css3-syntax', { 'on_ft' : ['css','scss','sass']}],
|
\ ['hail2u/vim-css3-syntax', { 'on_ft' : ['css','scss','sass']}],
|
||||||
|
@ -47,6 +47,9 @@ let g:deoplete#omni#input_patterns.php = [
|
|||||||
\'[^. \t0-9]\->\w*',
|
\'[^. \t0-9]\->\w*',
|
||||||
\'[^. \t0-9]\::\w*',
|
\'[^. \t0-9]\::\w*',
|
||||||
\]
|
\]
|
||||||
|
let g:deoplete#ignore_sources.php = ['omni', 'around', 'member']
|
||||||
|
call deoplete#custom#set('phpcd', 'mark', '')
|
||||||
|
call deoplete#custom#set('phpcd', 'input_pattern', '\w*|[^. \t]->\w*|\w*::\w*')
|
||||||
|
|
||||||
" lua
|
" lua
|
||||||
let g:deoplete#omni_patterns.lua = '.'
|
let g:deoplete#omni_patterns.lua = '.'
|
||||||
|
Loading…
Reference in New Issue
Block a user