nvim: Use built in highlight yank text feature

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-07-02 15:38:23 +05:30
parent 946a1c5592
commit 402d7e0c30

View file

@ -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