Skip to content

Commit 52734bb

Browse files
mike-jlMatthew Lemon
authored andcommitted
Check for loop or uv for lazypath (nvim-lua#1095)
1 parent e9e2efc commit 52734bb

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
@@ -232,7 +232,7 @@ vim.api.nvim_create_autocmd('TextYankPost', {
232232
-- [[ Install `lazy.nvim` plugin manager ]]
233233
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
234234
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
235-
if not vim.uv.fs_stat(lazypath) then
235+
if not (vim.uv or vim.loop).fs_stat(lazypath) then
236236
local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
237237
local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
238238
if vim.v.shell_error ~= 0 then

0 commit comments

Comments
 (0)