nvim: Update yank highlight for vim 0.11

This commit is contained in:
Marty Oehme 2025-03-08 19:32:50 +01:00
parent ecf26880ed
commit 642d422007
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -1,6 +1,6 @@
-- Highlight whatever is being yanked -- Highlight whatever is being yanked
vim.api.nvim_create_autocmd({ "TextYankPost" }, { vim.api.nvim_create_autocmd({ "TextYankPost" }, {
command = 'silent! lua require"vim.highlight".on_yank{timeout=500}', command = 'silent! lua require"vim.hl".on_yank{timeout=500}',
desc = "Highlight yanked text whenevery yanking something", desc = "Highlight yanked text whenevery yanking something",
group = vim.api.nvim_create_augroup("highlightyanks", { clear = true }), group = vim.api.nvim_create_augroup("highlightyanks", { clear = true }),
}) })