targets.vim
targets.vim copied to clipboard
Does not trigger `autocmd TextYankPost`
Hi,
I have this snippet in my vim settings:
" Flash highlighted text
if exists('##TextYankPost') && has('nvim-0.5')
au TextYankPost * ++nested silent! lua vim.highlight.on_yank {timeout=200, on_visual=false}
endif
TextYankPost exists in Vim 8 as well. I realized that I don't get a highlight
when I yank using targets.vim. Is there any way to call a function on yank with
targets.vim? Or am I missing something?
Thanks
It seems targets.vim uses visual mode to set the text objects. So if you set on_visual to true you should get the highlights back.