mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-18 21:27:42 +00:00
13 lines
276 B
Lua
13 lines
276 B
Lua
-- Highlight yanked text
|
|
|
|
local ag = vim.api.nvim_create_augroup
|
|
local au = vim.api.nvim_create_autocmd
|
|
|
|
au('TextYankPost', {
|
|
group = ag('yank_highlight', {}),
|
|
pattern = '*',
|
|
callback = function()
|
|
vim.highlight.on_yank { higroup='IncSearch', timeout=300 }
|
|
end,
|
|
})
|