summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael L. <m@lehenauer.com>2024-08-22 22:56:33 +0200
committerGitHub <noreply@github.com>2024-08-22 16:56:33 -0400
commitce0c7340fff68fb45d817478a8c0facb24425149 (patch)
tree23324aa194c0d032902ec8f57f46400fbfbe45df
parent554a054bf9e0f04b637b7913b17327606f0ec9d0 (diff)
Check for loop or uv for lazypath (#1095)
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 220d304..314a05b 100644
--- a/init.lua
+++ b/init.lua
@@ -207,7 +207,7 @@ vim.api.nvim_create_autocmd('TextYankPost', {
-- [[ Install `lazy.nvim` plugin manager ]]
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
-if not vim.uv.fs_stat(lazypath) then
+if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
if vim.v.shell_error ~= 0 then