mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:40:05 +08:00
zsh:support autocomplete
1. autotrigger in YCM and deoplete. 2. press ^x^o in other case
This commit is contained in:
parent
91cad9eabc
commit
8880cf355b
@ -1,7 +1,12 @@
|
|||||||
function! SpaceVim#layers#lang#javascript#plugins() abort
|
function! SpaceVim#layers#lang#sh#plugins() abort
|
||||||
return [
|
let l:plugins = []
|
||||||
\ ['chrisbra/vim-zsh', { 'on_ft' : 'zsh' }]
|
call add(l:plugins, ['chrisbra/vim-zsh', { 'on_ft' : 'zsh' }])
|
||||||
\ ]
|
if get(g:, 'spacevim_enable_ycm') == 1
|
||||||
|
call add(l:plugins, ['Valodim/vim-zsh-completion', { 'on_ft' : 'zsh' }])
|
||||||
|
else
|
||||||
|
call add(l:plugins, ['zchee/deoplete-zsh', { 'on_ft' : 'zsh' }])
|
||||||
|
endif
|
||||||
|
return l:plugins
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! SpaceVim#layers#lang#sh#config()
|
function! SpaceVim#layers#lang#sh#config()
|
||||||
|
@ -19,5 +19,6 @@ let g:ycm_semantic_triggers = {
|
|||||||
\ 'ruby' : ['.', '::'],
|
\ 'ruby' : ['.', '::'],
|
||||||
\ 'lua' : ['.', ':'],
|
\ 'lua' : ['.', ':'],
|
||||||
\ 'erlang' : [':'],
|
\ 'erlang' : [':'],
|
||||||
\ 'sh' : ['re!\w{2}', '/', '-'],
|
\ 'sh' : ['re![\w-]{2}', '/', '-'],
|
||||||
|
\ 'zsh' : ['re![\w-]{2}', '/', '-'],
|
||||||
\ }
|
\ }
|
||||||
|
Loading…
Reference in New Issue
Block a user