Closed mawkler closed 1 month ago
Hi @mawkler , (I know this is a really late response) but I've now added the ability to disable eyeliner from automatically mapping f/F/t/T, and I've also exposed eyeliner's highlight function as require("eyeliner").highlight({ forward = true })
. I've added more information to the README .
Thanks for the feature request! Let me know if there are any issues!
Thank you very much @jinh0! However, require('eyeliner').highlight
doesn't seem to be properly exposed. When I run :=require('eyeliner').highlight
on 2ee9e64d4c8133da1131edf0e64641e32dd16396 i get nil
.
Also, your changes seem to have introduced a couple of small regressions:
I noticed that 1d14a3d328f6c44e74e8a335248e50e2a1a15b5f forces the highlights. That overrides my EyelinerPrimary
, EyelinerSecondary
and EyelinerDimmed
highlights that I've set with my colorscheme when eyeliner.nvim gets lazy loaded.
Pressing <Esc>
to cancel after pressing t
/T
/f
/F
with highlight_on_key = true
no longer clears the highlights. I have to move the cursor in order for the highlights to dissappear.
When lazy loading eyeliner.nvim on pressing t
/T
/f
/F
it no longer loads properly. Even after pressing one of those keys, the key mappings don't get created (:map f
show "No mapping found"). I seeem to have to switch to another buffer and back for the key mappings to appear. Here's a minimal config to reproduce the issue (I'm on Neovim v0.11.0-dev-230+g0231265c8
btw):
Hi @mawkler , shoot! I rushed the changes last night, and the highlight function wasn't even exposed properly 🤦 . require("eyeliner").highlight
should now work in commit 9fcd97248e05582d896c437f20b1934723481c2d . I promise it should be working now!
Regarding the colorscheme thing, yeah that was me being stupid, thanks for catching that! I've reverted it: 0a7edd0aef409d3a647160eed95e7931ff6e4af8 .
Pressing
to cancel after pressing t/T/f/F with highlight_on_key = true no longer clears the highlights. I have to move the cursor in order for the highlights to disappear.
Yeah, I had to change how clearing highlights work: I separated the highlight and clearing highlights functionality from the keypress. "It's a feature, not a bug". It's not ideal.... we should make this a separate issue.
Regarding lazy loading on key press, for now, can you load eyeliner.nvim at event = "BufReadPre"? That's what I've been doing, and that's been working fine. We can raise a separate issue about keypress lazy loading.
nvim-treesitter-textobjects lets you repeat moves with
;
/,
This config clashes with eyeliner.nvim. Would it be possible for eyeliner.nvim to add compatibility for this?