mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-21 20:11:06 +00:00
fix(autocmds): correct version check for nvim-0.13 (#7184)
## Description Fix the check for `nvim-0.13` for autocmd TextYankPost <!-- Describe the big picture of your changes to communicate to the maintainers why we should accept this pull request. --> ## Related Issue(s) <!-- If this PR fixes any issues, please link to the issue here. - Fixes #<issue_number> --> ## Screenshots <!-- Add screenshots of the changes if applicable. --> ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines.
This commit is contained in:
parent
b30c0312ea
commit
6eb16e730d
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ 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()
|
||||||
if vim.fn.has("nvim-0.13") then
|
if vim.fn.has("nvim-0.13") == 1 then
|
||||||
vim.hl.hl_op()
|
vim.hl.hl_op()
|
||||||
else
|
else
|
||||||
(vim.hl or vim.highlight).on_yank()
|
(vim.hl or vim.highlight).on_yank()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue