From a84a91780fc6c6846860e42078ab19334ae2901e Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Wed, 18 Jan 2017 00:43:36 +0800 Subject: [PATCH] Use omni --- autoload/SpaceVim/layers/lang/php.vim | 2 +- config/plugins/deoplete.vim | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/SpaceVim/layers/lang/php.vim b/autoload/SpaceVim/layers/lang/php.vim index 7e4158d82..d20a44529 100644 --- a/autoload/SpaceVim/layers/lang/php.vim +++ b/autoload/SpaceVim/layers/lang/php.vim @@ -3,7 +3,7 @@ function! SpaceVim#layers#lang#php#plugins() abort if has('nvim') call add(plugins, ['padawan-php/deoplete-padawan']) endif - call add(plugins, ['wsdjeg/phpcd.vim']) + call add(plugins, ['php-vim/phpcd.vim']) return plugins endfunction diff --git a/config/plugins/deoplete.vim b/config/plugins/deoplete.vim index 75da5018f..ea79ed44b 100644 --- a/config/plugins/deoplete.vim +++ b/config/plugins/deoplete.vim @@ -13,7 +13,8 @@ let g:deoplete#omni#input_patterns.java = [ \] let g:deoplete#omni#input_patterns.jsp = ['[^. \t0-9]\.\w*'] let g:deoplete#omni#input_patterns.php = '\h\w*\|[^. \t]->\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?' -let g:deoplete#ignore_sources = {} +let g:deoplete#omni_patterns = get(g:, 'deoplete#omni_patterns', {}) +let g:deoplete#omni_patterns.php = '->\|::'let g:deoplete#ignore_sources = {} let g:deoplete#ignore_sources.go = ['omni'] call deoplete#custom#set('go', 'mark', '') if g:spacevim_enable_javacomplete2_py