mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 23:50:04 +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 css setlocal omnifunc=csscomplete#CompleteCSS
|
||||
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
|
||||
autocmd FileType php setlocal omnifunc=phpcomplete_extended#CompletePHP
|
||||
autocmd BufEnter *
|
||||
\ if empty(&buftype) && has('nvim') && &filetype != 'help'
|
||||
\| nnoremap <silent><buffer> <C-]> :call MyTagfunc()<CR>
|
||||
|
@ -1,7 +1,6 @@
|
||||
function! SpaceVim#layers#lang#plugins() abort
|
||||
let plugins = [
|
||||
\ ['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']}],
|
||||
\ ['cakebaker/scss-syntax.vim', { 'on_ft' : ['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*',
|
||||
\]
|
||||
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
|
||||
let g:deoplete#omni_patterns.lua = '.'
|
||||
|
Loading…
Reference in New Issue
Block a user