This repository has been archived by the owner on Feb 23, 2025. It is now read-only.
After connect, vim.highlight.on_yank seems to be triggered automatically (Neovim) #384
Labels
neovim
Neovim's behaviors
After connecting to an nREPL, as soon as I type any character that is not either one of
(){}[]'\
(probably some others too), the top-level form (with all its nested forms) gets highlighted as if a yank has occurred.I have tried to disable all the other plugins that might cause a conflict (even coc, treesitter and my theme), but this seems to be an issue with vim-iced. It also doesn't matter what I set my clipboard to. The highlighting only disappears after I delete my TextYankPost autocommand, which looks like this:
Here is a quick demonstration (wait for the part after
:IcedConnect
):A temporary fix I found is to add
on_visual=false
to thehighlight.on_yank
options. It seems that the issue has something to do with visual selection, although it occurs in normal mode.This is not ideal, since I still want to highlight yanked text in visual mode, but it is a compromise I can live with for now (considering the amazing IDE-ish experience vim-iced has to offer).
The text was updated successfully, but these errors were encountered: