🪴 my neovim config:)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

plugin: add yank buf autocmd

robin ac3a7c30 c5a797d3

+11
+11
config/plugin/yankhl.lua
··· 6 6 end, 7 7 desc = "highlight yanked text", 8 8 }) 9 + 10 + vim.api.nvim_create_autocmd("TextYankPost", { 11 + group = vim.api.nvim_create_augroup("editor:yank:buf", { clear = true }), 12 + callback = function() 13 + if vim.v.event.operator == "y" then 14 + for i = 9, 1, -1 do 15 + vim.fn.setreg(tostring(i), vim.fn.getreg(tostring(i - 1))) 16 + end 17 + end 18 + end, 19 + })