yank highlight tweak

This commit is contained in:
Salar Rahmanian 2024-09-23 18:34:30 -07:00
parent 2630d96e0b
commit 03bf0a72b1

View file

@ -79,10 +79,10 @@ else
-- [[ Highlight on yank ]]
-- See `:help vim.highlight.on_yank()`
local highlight_group = vim.api.nvim_create_augroup("YankHighlight", { clear = true })
local highlight_group = vim.api.nvim_create_augroup("highlight_yank", { clear = true })
vim.api.nvim_create_autocmd("TextYankPost", {
callback = function()
vim.highlight.on_yank({ higroup = "IncSearch", timeout = 1000 })
vim.highlight.on_yank({ higroup = "IncSearch", timeout = 200 })
end,
group = highlight_group,
pattern = "*",