Closed owickstrom closed 6 years ago
Awesome, this should fix #16 :)
@parsonsmatt Cool! I have a refactoring and possible test coming up, maybe hold the merge a bit if that's ok?
@parsonsmatt tests added, and the bulk of the type insertion code is refactored as a pure function.
Removed the echo
, thanks! :)
This adds support for using
:InteroTypeInsert
not only at the top-level, but in any indented where or let bindings.I recorded an asciinema cast of this when I had implemented it in neovim-ghci, so you can see it in action there:
The code is a little involved in the
s:paste_type
, so I've tried to comment and explain what's going on.