Skip to content

Commit 8811d5e

Browse files
mike-jljohnlonganecker
authored andcommitted
Check for loop or uv for lazypath (nvim-lua#1095)
1 parent 50c25f3 commit 8811d5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ vim.api.nvim_create_autocmd('TextYankPost', {
222222
-- [[ Install `lazy.nvim` plugin manager ]]
223223
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
224224
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
225-
if not vim.uv.fs_stat(lazypath) then
225+
if not (vim.uv or vim.loop).fs_stat(lazypath) then
226226
local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
227227
local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
228228
if vim.v.shell_error ~= 0 then

0 commit comments

Comments
 (0)