yank highlight tweak
This commit is contained in:
parent
2630d96e0b
commit
03bf0a72b1
1 changed files with 2 additions and 2 deletions
4
init.lua
4
init.lua
|
@ -79,10 +79,10 @@ else
|
||||||
|
|
||||||
-- [[ Highlight on yank ]]
|
-- [[ Highlight on yank ]]
|
||||||
-- See `:help vim.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", {
|
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.highlight.on_yank({ higroup = "IncSearch", timeout = 1000 })
|
vim.highlight.on_yank({ higroup = "IncSearch", timeout = 200 })
|
||||||
end,
|
end,
|
||||||
group = highlight_group,
|
group = highlight_group,
|
||||||
pattern = "*",
|
pattern = "*",
|
||||||
|
|
Loading…
Reference in a new issue