Skip to content

Commit a3e2a08

Browse files
mike-jlottoreimers
authored andcommitted
Check for loop or uv for lazypath (nvim-lua#1095)
1 parent cbb5941 commit a3e2a08

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

0 commit comments

Comments
 (0)