mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-24 13:31:06 +00:00
Replace vim.hl.on_yank with vim.hl.hl_op for nvim-0.13 and above
This commit is contained in:
parent
2dc527e511
commit
16c364b8be
1 changed files with 5 additions and 1 deletions
|
|
@ -18,7 +18,11 @@ vim.api.nvim_create_autocmd({ "FocusGained", "TermClose", "TermLeave" }, {
|
||||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||||
group = augroup("highlight_yank"),
|
group = augroup("highlight_yank"),
|
||||||
callback = function()
|
callback = function()
|
||||||
(vim.hl or vim.highlight).on_yank()
|
if vim.fn.has("nvim-0.13") then
|
||||||
|
vim.hl.hl_op()
|
||||||
|
else
|
||||||
|
(vim.hl or vim.highlight).on_yank()
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue