aboutsummaryrefslogtreecommitdiff
path: root/lua/core
diff options
context:
space:
mode:
Diffstat (limited to 'lua/core')
-rw-r--r--lua/core/feat.lua6
-rw-r--r--lua/core/init.lua1
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")