From 4839ab642962cc76bb1bf278427dc4c59be15072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Calla=20Alarc=C3=B3n?= Date: Fri, 13 Jun 2025 15:54:25 +0200 Subject: [PATCH] update deprecated vim api usage (#152) The `vim.loop` prop is deprecated and will be removed at Nvim 1.0. This PR adds support for the new `vim.uv` prop instead but keeps backward compatibility with previous versions of Nvim. --- lua/lazygit/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazygit/utils.lua b/lua/lazygit/utils.lua index d86628b..dd2bbff 100644 --- a/lua/lazygit/utils.lua +++ b/lua/lazygit/utils.lua @@ -57,7 +57,7 @@ local function project_root_dir() vim.o.shell = 'cmd' end - local cwd = vim.loop.cwd() + local cwd = (vim.uv or vim.loop).cwd() local root = get_root(cwd) if root == nil then vim.o.shell = oldshell