othree / es.next.syntax.vim

ES.Next syntax for Vim
MIT License
127 stars 8 forks source link

Flowtype support #6

Open steelsojka opened 8 years ago

steelsojka commented 8 years ago

vim-javascript has Flow support, but is missing many other ES2016+ features like decorators.

https://github.com/pangloss/vim-javascript/blob/master/extras/flow.vim

My vim syntax skills aren't good enough to splice these together :(

othree commented 7 years ago

I will add basic type hint support. But will not stick on flow or typescript.

nono commented 7 years ago

Hi,

thanks for your plugin. I can see you have put some basic type hint support, like you said. It bugs when we declare a return type for a function, like this:

async pullOne (id: string): Promise<*> {
  // <- code here seems to be still considered as a type
}

Do you think it is something that you can fix? Or is it out of scope for the basic type support?

othree commented 7 years ago

Function return type is not ready now~

othree commented 7 years ago

Just add basic support, not widely tested

nono commented 7 years ago

Thanks! It looks like it works pretty well on my project.