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 M = {}
|
||||
|
||||
local function get_dir_git_status(parent_ignored, status, absolute_path)
|
||||
@@ -22,7 +20,7 @@ local function get_git_status(parent_ignored, status, absolute_path)
|
||||
end
|
||||
|
||||
function M.has_one_child_folder(node)
|
||||
return #node.nodes == 1 and node.nodes[1].nodes and uv.fs_access(node.nodes[1].absolute_path, "R")
|
||||
return #node.nodes == 1 and node.nodes[1].nodes and vim.loop.fs_access(node.nodes[1].absolute_path, "R")
|
||||
end
|
||||
|
||||
function M.update_git_status(node, parent_ignored, status)
|
||||
|
||||
Reference in New Issue
Block a user