Skip to content

Commit 686c298

Browse files
Anup SebastianAnup Sebastian
authored andcommitted
fix: post yank text highlight time
1 parent 5a58870 commit 686c298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ vim.api.nvim_create_autocmd('TextYankPost', {
280280
desc = 'Highlight when yanking (copying) text',
281281
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
282282
callback = function()
283-
vim.hl.on_yank()
283+
vim.hl.on_yank({higroup = 'IncSearch', timeout = 300})
284284
end,
285285
})
286286

0 commit comments

Comments
 (0)