1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-13 04:51:15 +02:00

nvim: updated yank color

This commit is contained in:
2024-04-02 00:19:28 +02:00
parent 2b842cee47
commit 3b1eaeec65
4 changed files with 16 additions and 10 deletions

View File

@@ -1,10 +1,8 @@
-- highlighting yanked regions
local highlight_group = vim.api.nvim_create_augroup("YankHighlight", { clear = true })
vim.api.nvim_create_autocmd("TextYankPost", {
callback = function()
vim.highlight.on_yank()
vim.highlight.on_yank({higroup="YankHighlight"})
end,
group = highlight_group,
})
-- gnikdroy/projections.nvim