fix: replace vim.* "requires" with explicit calls to vim functions (#1701)

This commit is contained in:
Alexander Courtis
2022-11-06 10:37:33 +11:00
committed by GitHub
parent 6d6a44626d
commit 8cc369695b
30 changed files with 263 additions and 321 deletions

View File

@@ -1,5 +1,3 @@
local uv = vim.loop
local log = require "nvim-tree.log"
local utils = require "nvim-tree.utils"
local git_utils = require "nvim-tree.git.utils"
@@ -74,7 +72,7 @@ function M.get_project_root(cwd)
return nil
end
local stat, _ = uv.fs_stat(cwd)
local stat, _ = vim.loop.fs_stat(cwd)
if not stat or stat.type ~= "directory" then
return nil
end