Open bbatsov opened 2 years ago
the highlighting of let
when you are on the in
is probably related to a different mode related to parenthesis or pairs
Hmm, how can that be? This doesn't happen when "highlight occurrences" from this package is disabled.
Btw, as a general point - I don't think that highlighting occurrences really belongs here, as that has little to do with eldoc
.
This is very surprising to me, I didn't expect merlin to return occurrences when the point is on in
.
I'm not against moving the highlighting of occurrences in a different mode. But
eldoc-documentation-function
to trigger a function after some idle time (even tho that's what this project did before https://github.com/Khady/merlin-eldoc/commit/a11e06a6c9018562a7179b5f197ff9200d67a8f6)If you wish to work on that or other improvements to the mode I'm happy to review them and I'm open to add you as a collaborator on the repo.
Let's see how much time I'll have for OSS work this year. :-) Given that soon we'll have tree-sitter support in Emacs it will probably be best to just rely on it for things like occurrences, etc. (and would mean that such functionality can be moved to modes like tuareg) There's also going to be some LSP support built-in, which might reduce the need to use merlin directly. There are lots of interesting possibilities on the horizon.
I guess it should either do nothing or highlight the matching
in
. (which is what happens if you go the to thein
itself)