From 3626524af26c0b0986ad581064c383a95f82ea55 Mon Sep 17 00:00:00 2001 From: Aniket Mahesh Mogal Date: Wed, 7 Aug 2024 12:47:17 +0530 Subject: [PATCH] Update init.lua --- init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 220d3045..467b9b79 100644 --- a/init.lua +++ b/init.lua @@ -207,15 +207,16 @@ 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.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 error('Error cloning lazy.nvim:\n' .. out) end -end ---@diagnostic disable-next-line: undefined-field +end vim.opt.rtp:prepend(lazypath) + -- [[ Configure and install plugins ]] -- -- To check the current status of your plugins, run