diff --git a/autoload/SpaceVim/layers/lang/javascript.vim b/autoload/SpaceVim/layers/lang/javascript.vim index 73d8e6105..0ef0ddff2 100644 --- a/autoload/SpaceVim/layers/lang/javascript.vim +++ b/autoload/SpaceVim/layers/lang/javascript.vim @@ -4,7 +4,9 @@ function! SpaceVim#layers#lang#javascript#plugins() abort if has('nvim') call add(plugins,['carlitux/deoplete-ternjs', { 'on_ft' : ['javascript']}]) else - call add(plugins,['ternjs/tern_for_vim', { 'on_ft' : ['javascript']}]) + call add(plugins,['ternjs/tern_for_vim', { 'on_ft' : ['javascript'], + \ 'build' : 'npm install', + \ }]) endif call add(plugins,['othree/javascript-libraries-syntax.vim', { 'on_ft' : ['javascript','coffee','ls','typescript']}]) call add(plugins,['mmalecki/vim-node.js', { 'on_ft' : ['javascript']}]) diff --git a/autoload/SpaceVim/layers/lang/php.vim b/autoload/SpaceVim/layers/lang/php.vim index 33a0fe49b..18b1c7182 100644 --- a/autoload/SpaceVim/layers/lang/php.vim +++ b/autoload/SpaceVim/layers/lang/php.vim @@ -17,7 +17,7 @@ function! SpaceVim#layers#lang#php#plugins() abort let plugins = [] - call add(plugins, ['php-vim/phpcd.vim', { 'on_ft' : 'php'}]) + call add(plugins, ['php-vim/phpcd.vim', { 'on_ft' : 'php', 'build' : 'composer install'}]) call add(plugins, ['StanAngeloff/php.vim', { 'on_ft' : 'php'}]) call add(plugins, ['2072/PHP-Indenting-for-VIm', { 'on_ft' : 'php'}]) call add(plugins, ['rafi/vim-phpspec', { 'on_ft' : 'php'}])