idris-hackers / idris-vim

Idris mode for vim
221 stars 52 forks source link

Add IdrisShowCore function #88

Open andrejtokarcik opened 6 years ago

andrejtokarcik commented 6 years ago

David Christiansen has recently demonstrated that the "show core" function can come in handy even when debugging rather simple issues. The following patch adds this capability to idris-vim, mapping it to the <LocalLeader>cr binding.

The other functions don't seem to be consistent in their use of expand("<cword>") as opposed to the s:currentQueryObject() helper function. I use the former, adapted from IdrisShowDoc.