reload explorer after git actions in nvim-tree
This commit is contained in:
@@ -32,6 +32,8 @@ local function git_stage(node)
|
|||||||
args = { "add", relative_path },
|
args = { "add", relative_path },
|
||||||
})
|
})
|
||||||
:start()
|
:start()
|
||||||
|
|
||||||
|
require("nvim-tree.actions.reloaders").reload_explorer()
|
||||||
end
|
end
|
||||||
local function git_reset(node)
|
local function git_reset(node)
|
||||||
local cwd = vim.loop.cwd()
|
local cwd = vim.loop.cwd()
|
||||||
@@ -43,6 +45,8 @@ local function git_reset(node)
|
|||||||
args = { "reset", relative_path },
|
args = { "reset", relative_path },
|
||||||
})
|
})
|
||||||
:start()
|
:start()
|
||||||
|
|
||||||
|
require("nvim-tree.actions.reloaders").reload_explorer()
|
||||||
end
|
end
|
||||||
-- TODO: add here keymap for git diff window
|
-- TODO: add here keymap for git diff window
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user