Skip to content

Commit d13ae98

Browse files
mike-jlmonk3yd
authored andcommitted
Check for loop or uv for lazypath (nvim-lua#1095)
1 parent 8c6f941 commit d13ae98

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

0 commit comments

Comments
 (0)