vim-textobj-function-javascript icon indicating copy to clipboard operation
vim-textobj-function-javascript copied to clipboard

Support for TypeScript would be awesome

Open bag-man opened this issue 6 years ago • 1 comments

I think it wouldn't be too hard, but my Vimscript skills aren't quite there. It looks like you would just need another version of the find rage function, that would handle parameter typings, then it should work just fine.

Thanks!

bag-man avatar Feb 19 '19 09:02 bag-man

I think I did it!

\v(<async>\s+)?(<function>|(\((\k|:\s\k|,|\s)*\)|\k+|\(.*\):\s\k+)\s*\=\>\s*)

Is the updated regex to handle typescript annotations.

#10

bag-man avatar Feb 19 '19 15:02 bag-man