From 3382627d6fda6e28da72718cc33341527328801c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 3 Jan 2025 15:57:22 +0000 Subject: [PATCH] Highlight the yanked text --- nvim/plugin/autocommands.lua | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 nvim/plugin/autocommands.lua diff --git a/nvim/plugin/autocommands.lua b/nvim/plugin/autocommands.lua new file mode 100644 index 0000000..c4641b1 --- /dev/null +++ b/nvim/plugin/autocommands.lua @@ -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, +})