feat: reduce highlight duration on yank a bit
This commit is contained in:
parent
23f4cf315b
commit
8571a7b1b5
1 changed files with 4 additions and 1 deletions
|
|
@ -47,7 +47,10 @@ vim.api.nvim_create_autocmd("TextYankPost", {
|
||||||
desc = "Highlight when yanking (copying) text",
|
desc = "Highlight when yanking (copying) text",
|
||||||
group = vim.api.nvim_create_augroup("weeheavy-highlight-yank", { clear = true }),
|
group = vim.api.nvim_create_augroup("weeheavy-highlight-yank", { clear = true }),
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.highlight.on_yank()
|
vim.highlight.on_yank({
|
||||||
|
higroup = "IncSearch",
|
||||||
|
timeout = 100,
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue