Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lua/neo-tree/sources/filesystem/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,18 @@ M.navigate_up = function(state)
fs._navigate_internal(state, parent_path, path_to_reveal, nil, false)
end

---@param state neotree.StateWithTree
local focus_next_git_modified = function(state, reverse)
local node = state.tree:get_node()
local node = assert(state.tree:get_node())
local current_path = node:get_id()
local g = state.git_status_lookup
if not utils.truthy(g) then
return
end
---@cast g -nil
local paths = { current_path }
for path, status in pairs(g) do
if path ~= current_path and status and status ~= "!!" then
if path ~= current_path and not vim.tbl_contains({ "!!", "?" }, status) then
--don't include files not in the current working directory
if utils.is_subpath(state.path, path) then
table.insert(paths, path)
Expand Down
Loading