mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-22 04:21:08 +00:00
fix(autocmds): correct version check for nvim-0.13
This commit is contained in:
parent
b30c0312ea
commit
7a34254cc0
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", {
|
||||
group = augroup("highlight_yank"),
|
||||
callback = function()
|
||||
if vim.fn.has("nvim-0.13") then
|
||||
if vim.fn.has("nvim-0.13") == 1 then
|
||||
vim.hl.hl_op()
|
||||
else
|
||||
(vim.hl or vim.highlight).on_yank()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue