KabbAmine / gulp-vim

Simply gulp from Vim + ctrlp-gulp + unite-gulp
28 stars 5 forks source link

Neovim async support? #5

Open mhartington opened 8 years ago

mhartington commented 8 years ago

Have you thought about adding support for Neovim's async process? Would allow you to run gulp tasks without blocking the UI.

Similar plugins like neomake have done this were it downgrades in regular vim by being blocking.

https://github.com/benekastah/neomake

KabbAmine commented 8 years ago

The benefit will be to use the integrated neovim terminal, but I'm not planning to do that soon, no time and I'm not (yet?) a neovim user. Also, the current command GulpExt executes gulp in the backgroud (Using an external terminal) so the UI is not blocked.

Thanks for your suggestion anyway, I'll let the issue in suspend.

KabbAmine commented 8 years ago

I've just added in 0.8.0 version the possibility to define a custom command to use with GulpExt.

Logically in neovim, something like let g:gv_custom_cmd = ':vsp term://%s' should work well. It will be great if someone can test it and give us feedback :smiley: @mhartington ?


UPDATE

Ok, forget the command above, it doesn't work.

I didn't find a good way to:

  1. Open a new terminal split (vsp term://bash)
  2. Start insert mode (vsp term://bash | startinsert! or something like vsp term://bash | normal! a)
  3. Then append the gulp command.

We can say also that I didn't dig further :stuck_out_tongue:


UPDATE

To use neoterm (Added to the wiki):

let g:gv_custom_cmd = 'T clear && %s'

It works great but I'm still waiting for a native way, without using an external plugin.