feat(tweaks): highlight on yank

This commit is contained in:
Guz
2024-12-07 12:47:14 -03:00
parent 799656c3cc
commit 9e2186e574
2 changed files with 10 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
require("dot013.options")
require("dot013.tweaks")
vim.g.lze = {
--@type fun(name: string)

9
lua/dot013/tweaks.lua Normal file
View File

@@ -0,0 +1,9 @@
-- Highlight on yank
local highlight_group = vim.api.nvim_create_augroup("YankHighlight", { clear = true })
vim.api.nvim_create_autocmd("TextYankPost", {
callback = function()
vim.highlight.on_yank()
end,
group = highlight_group,
pattern = "*",
})