improvements to yank

This commit is contained in:
Salar Rahmanian 2024-09-23 18:15:26 -07:00
parent 1949d31e98
commit 2630d96e0b

View file

@ -82,7 +82,7 @@ else
local highlight_group = vim.api.nvim_create_augroup("YankHighlight", { clear = true })
vim.api.nvim_create_autocmd("TextYankPost", {
callback = function()
vim.highlight.on_yank()
vim.highlight.on_yank({ higroup = "IncSearch", timeout = 1000 })
end,
group = highlight_group,
pattern = "*",