highlight yank

This commit is contained in:
pvincent
2026-08-23 01:35:51 +04:00
parent 1115c74778
commit f34e9f69ef
2 changed files with 12 additions and 0 deletions
+11
View File
@@ -95,3 +95,14 @@ nmap ÿ <A-BS>
imap ÿ <A-BS>
tnoremap ÿ <A-BS>
" Highlight on Yank
if has('nvim')
" NVIM only features
augroup highlight_yank
autocmd!
au TextYankPost * silent! lua vim.highlight.on_yank()
augroup END
else
" VIM only features
packadd! hlyank
endif