folke / twilight.nvim

🌅 Twilight is a Lua plugin for Neovim 0.5 that dims inactive portions of the code you're editing using TreeSitter.
Apache License 2.0
1.24k stars 21 forks source link

[Feature Request]: Second/Additional non-dimmed area that follows the mouse #22

Closed joehannes closed 1 month ago

joehannes commented 2 years ago

When working with this plugin on, I find it quite uncomfortable if I am looking for a specific piece of code nearby in the not highlighted areas ... I'd love for the cursor-area to stay highlighted and the rest to stay dimmed as is right now, but additionally I'd love to see the feature of an additional (optional) highlighted area that doesn't follow the cursor but the mouse. I guess this would probably not be much work for you and I think it would be super-useful - you see: I find myself pointing to the area (more or less) where I'm looking for something anyway, so if that highlight would follow the mouse cursor, that would be so awesome. (while the area round the cursor stays highlighted as well - any way)

Imagine for example in a split buffer, you got the cursor in one buffer and quickly want to double check something in one of the other buffers ... need to switch off/toggle the plugin for a sec => oh, but not so, no, you just hover with the mouse that other section in that other buffer and there's the other highlight following that mouse-cursor, yeah!

Hubro commented 2 years ago

It sounds like you're requesting a feature that depends on mouse hover. This is not possible, as Neovide has no concept of mouse hover or the mouse position in general.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 month ago

This issue was closed because it has been stalled for 7 days with no activity.