ElmCast / elm-vim

Elm plugin for Vim
BSD 3-Clause "New" or "Revised" License
572 stars 102 forks source link

Improve GF to deal with prefixed functions & module aliases #145

Closed michaeljones closed 5 years ago

michaeljones commented 6 years ago

This is pretty much the first vim script I've ever written so please feel free to change it.

Otherwise the intention is for gf to work for examples like My.Module.func and MM where MM is defined by import My.Module as MM. Also works for MM.func.

michaeljones commented 6 years ago

I think I got confused with what I was pushing on that first round. I've rebased & pushed an updated version. Hopefully it works.

michaeljones commented 6 years ago

Now works with My.Module.Type as well. We iteratively strip off the end segments and search for a potential module match at each stage.