diff options
author | Michael L. <m@lehenauer.com> | 2024-08-22 22:56:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-22 16:56:33 -0400 |
commit | ce0c7340fff68fb45d817478a8c0facb24425149 (patch) | |
tree | 23324aa194c0d032902ec8f57f46400fbfbe45df | |
parent | 554a054bf9e0f04b637b7913b17327606f0ec9d0 (diff) |
Check for loop or uv for lazypath (#1095)
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |