diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-05-15 16:52:08 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-05-15 16:53:16 +0530 |
commit | e484d003a645c01633a863b153b802d6e72b361d (patch) | |
tree | 3624b06b2caea39fe0915ab46b8338c0925d370a | |
parent | 7332b6b2daa211abc7ec2d6f18b3a0438acec976 (diff) |
core/feat: init highlight on yank
-rw-r--r-- | lua/core/feat.lua | 6 | ||||
-rw-r--r-- | lua/core/init.lua | 1 |
2 files changed, 7 insertions, 0 deletions
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") |