Updated: 25 March 2024
Flash yanked text
autocmd("TextYankPost", {
pattern = "*",
desc = "Highlight text on yank.",
callback = function ()
vim.highlight.on_yank { higroup = "Search", timeout = 150 }
end,
})
Freelance software engineer United Kingdom
Updated: 25 March 2024
Flash yanked text
autocmd("TextYankPost", {
pattern = "*",
desc = "Highlight text on yank.",
callback = function ()
vim.highlight.on_yank { higroup = "Search", timeout = 150 }
end,
})