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:
committed by
GitHub
parent
b9eae3bada
commit
4839ab6429
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user