From 9b6763befc7f4fcd9797d3ec484418de9b0984d7 Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Thu, 9 Mar 2017 08:48:52 +0100 Subject: [PATCH] Add completion for gulp --- vimrc.symlink | 4 +++- zsh/custom.zsh | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/vimrc.symlink b/vimrc.symlink index 083a7da..5c15bfe 100644 --- a/vimrc.symlink +++ b/vimrc.symlink @@ -47,6 +47,8 @@ Plug 'gavocanov/vim-js-indent', { 'for': 'javascript' } " JavaScript indent supp Plug 'moll/vim-node', { 'for': 'javascript' } " node support Plug 'othree/yajs.vim', { 'for': 'javascript' } " JavaScript syntax plugin Plug 'othree/es.next.syntax.vim', { 'for': 'javascript' } " ES6 and beyond syntax +Plug 'ternjs/tern_for_vim', { 'for': 'javascript', 'do': 'npm install' } " Ternjs for vim +Plug 'https://github.com/othree/jspc.vim', { 'for': 'javascript' } " Function parameter completion Plug 'posva/vim-vue', { 'for': [ 'javascript', 'html' ] } " vue.js integration " Go @@ -199,7 +201,7 @@ inoremap neocomplete#smart_close_popup()."\" " Enable omni completion. autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags -autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS +autocmd FileType javascript setlocal omnifunc=tern#Complete autocmd FileType python setlocal omnifunc=pythoncomplete#Complete autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags diff --git a/zsh/custom.zsh b/zsh/custom.zsh index ade3369..1d18dd0 100644 --- a/zsh/custom.zsh +++ b/zsh/custom.zsh @@ -8,3 +8,8 @@ export goschneider="$HOME/go/src/git.webschneider.org" source $HOME/.dotfiles/zsh/aliases.zsh +# Shell completion for gulp +if hash gulp 2&> /dev/null; then + eval "$(gulp --completion=zsh)" +fi +