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.
This commit is contained in:
Carlos Calla Alarcón
2025-06-13 15:54:25 +02:00
committed by GitHub
parent b9eae3bada
commit 4839ab6429

View File

@@ -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