From 3382627d6fda6e28da72718cc33341527328801c Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.dev>
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 00000000..c4641b1c
--- /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,
+})