Skip to content

Commit f69bc29

Browse files
committed
feat(#3310): minimum neovim version 0.10
1 parent 738ecdf commit f69bc29

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

lua/nvim-tree/explorer/init.lua

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,10 @@ function Explorer:reload(node, project)
240240

241241
local abs = utils.path_join({ cwd, name })
242242

243-
-- path incorrectly specified as an integer
244-
local stat = vim.loop.fs_lstat(abs) ---@diagnostic disable-line param-type-mismatch
243+
-- TODO remove once 0.12 is the minimum neovim version
244+
-- path incorrectly specified as an integer, fixed upstream for neovim 0.12 https://github.com/neovim/neovim/pull/33872
245+
---@diagnostic disable-next-line: param-type-mismatch
246+
local stat = vim.loop.fs_lstat(abs)
245247

246248
local filter_reason = self.filters:should_filter_as_reason(abs, stat, filter_status)
247249
if filter_reason == FILTER_REASON.none then
@@ -399,8 +401,10 @@ function Explorer:populate_children(handle, cwd, node, project, parent)
399401
if Watcher.is_fs_event_capable(abs) then
400402
local profile = log.profile_start("populate_children %s", abs)
401403

402-
-- path incorrectly specified as an integer
403-
local stat = vim.loop.fs_lstat(abs) ---@diagnostic disable-line param-type-mismatch
404+
-- TODO remove once 0.12 is the minimum neovim version
405+
-- path incorrectly specified as an integer, fixed upstream for neovim 0.12 https://github.com/neovim/neovim/pull/33872
406+
---@diagnostic disable-next-line: param-type-mismatch
407+
local stat = vim.loop.fs_lstat(abs)
404408

405409
local filter_reason = parent.filters:should_filter_as_reason(abs, stat, filter_status)
406410
if filter_reason == FILTER_REASON.none and not nodes_by_path[abs] then

lua/nvim-tree/git/init.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ function M.reload_project(toplevel, path, callback)
138138
end
139139
GitRunner:run(args)
140140
else
141-
-- TODO #1974 use callback once async/await is available
142141
reload_git_project(toplevel, path, project, GitRunner:run(args))
143142
end
144143
end

0 commit comments

Comments
 (0)