diff --git a/nvim/.config/nvim/autocmd.vim b/nvim/.config/nvim/autocmd.vim index 24611a6..f687ddf 100644 --- a/nvim/.config/nvim/autocmd.vim +++ b/nvim/.config/nvim/autocmd.vim @@ -30,3 +30,8 @@ augroup END " Use completion-nvim in every buffer autocmd BufEnter * lua require'completion'.on_attach() + +augroup LuaHighlight + autocmd! + autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank("IncSearch", 2000) +augroup END