robin/ivy

my custom neovim config

git clone https://git.robinwobin.dev/robin/ivy

robinplugin: update deprecated `vim.hl` function6e99dff

main
410 B16 linesraw
1vim.on("TextYankPost", "@ivy.yank.highlight", {
2  pattern = "*",
3  desc = "highlight yanked text",
4}, function()
5  vim.hl.hl_op({ higroup = "CurSearch", timeout = 200 })
6end)
7
8vim.on("TextYankPost", "@ivy.yank.buf", {
9  desc = "rotate yank ringbuf",
10}, function()
11  if vim.v.event.operator == "y" then
12    for i = 9, 1, -1 do
13      vim.fn.setreg(tostring(i), vim.fn.getreg(tostring(i - 1)))
14    end
15  end
16end)