From e484d003a645c01633a863b153b802d6e72b361d Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 15 May 2024 16:52:08 +0530 Subject: core/feat: init highlight on yank --- lua/core/feat.lua | 6 ++++++ lua/core/init.lua | 1 + 2 files changed, 7 insertions(+) create mode 100644 lua/core/feat.lua (limited to 'lua') diff --git a/lua/core/feat.lua b/lua/core/feat.lua new file mode 100644 index 0000000..89d75bb --- /dev/null +++ b/lua/core/feat.lua @@ -0,0 +1,6 @@ +vim.api.nvim_create_autocmd('TextYankPost', { + desc = 'Highlight when yanking text', + callback = function() + vim.highlight.on_yank() + end, +}) diff --git a/lua/core/init.lua b/lua/core/init.lua index ff20ffb..93146a1 100644 --- a/lua/core/init.lua +++ b/lua/core/init.lua @@ -1,2 +1,3 @@ require("core.opts") require("core.maps") +require("core.feat") -- cgit v1.2.3