fix: replace vim.* "requires" with explicit calls to vim functions (#1701)
This commit is contained in:
committed by
GitHub
parent
6d6a44626d
commit
8cc369695b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user