symbol-overlay icon indicating copy to clipboard operation
symbol-overlay copied to clipboard

Overlay conflicts with eglot

Open hmelman opened this issue 2 years ago • 4 comments

I'm using (trying out) eglot with python-mode and it highlights the symbol-at-point with an overlay. I used symbol-overlay-put and other occurrences of the symbol highlighted (more clearly), but the keymap symbol-overlay installs didn't work. If I typed n the character was just inserted (eglot's overlay had a modification-hooks property if that matters), it didn't run symbol-overlay-jump-next.

I assumed it was because of conflicting overlays and added a 'priority 100 to the symbol-overlay overlay and it worked great. I don't know as there's a good solution (there was also a flymake overlay at point) but I think it would help if symbol-overlay included a priority in the overlays it uses and gives the user a symbol-overlay-priority user option to customize. That way we could resolve whatever conflicts we come across.

hmelman avatar Apr 20 '22 00:04 hmelman

@hmelman found any workaround? this's kind of annoying.

uqix avatar Jul 27 '23 01:07 uqix

I think it would help if symbol-overlay included a priority in the overlays it uses and gives the user a symbol-overlay-priority user option to customize.

I pushed a quick change to add this. 🤝

purcell avatar Jul 27 '23 05:07 purcell

Perfect! This feature has changed my life. :laughing:

(setq symbol-overlay-priority 100)

TxGVNN avatar Sep 26 '23 10:09 TxGVNN

It's working well for me too.

hmelman avatar Sep 26 '23 13:09 hmelman