nvim: Use built in highlight yank text feature
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
946a1c5592
commit
402d7e0c30
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue