I’m at a bit of a loss, but at some point Merlin started automatically checking the type of the expression under my cursor, and in the process highlighting all expressions with matching types. Unfortunately the highlighting is extremely distracting, especially when it highlights an entire match statement like in the second example image.
Does anyone know how to turn this off? I’m using spacemacs so I can’t completely rule it out from being a spacemacs issue, but the merlin-types buffer is open and updated in correspondence with the highlighting every time I move my cursor.
One curious thing I have noticed though is that the automatic types are the default OCaml types, whereas if I invoke merlin-type-enclosing directly it shows me the Jane Street base types since I’m using base.
For example, the auto types give me
int -> char and manually invoking Merlin gives
Base__Int.t -> Base.Char.t. I’m not sure if this is a clue, but I thought I’d include it.
Any ideas are much appreciated. This is driving me crazy!