Highlight the yanked text

This commit is contained in:
Oliver Davies 2025-01-03 15:57:22 +00:00
parent db3aa2fe32
commit 3382627d6f

View file

@ -0,0 +1,7 @@
vim.api.nvim_create_autocmd("TextYankPost", {
desc = "Highlight when yanking (copying) text",
group = vim.api.nvim_create_augroup("kickstart-highlight-yank", { clear = true }),
callback = function()
vim.highlight.on_yank()
end,
})