format
This commit is contained in:
@@ -26,27 +26,29 @@ local function git_stage(node)
|
||||
local relative_path = string.gsub(node.absolute_path, cwd .. "/", "")
|
||||
|
||||
Job
|
||||
:new({
|
||||
command = "git",
|
||||
args = { "add", relative_path },
|
||||
})
|
||||
:start()
|
||||
:new({
|
||||
command = "git",
|
||||
args = { "add", relative_path },
|
||||
})
|
||||
:start()
|
||||
|
||||
require("nvim-tree.actions.reloaders").reload_explorer()
|
||||
end
|
||||
|
||||
local function git_reset(node)
|
||||
local cwd = vim.loop.cwd()
|
||||
local relative_path = string.gsub(node.absolute_path, cwd .. "/", "")
|
||||
|
||||
Job
|
||||
:new({
|
||||
command = "git",
|
||||
args = { "reset", relative_path },
|
||||
})
|
||||
:start()
|
||||
:new({
|
||||
command = "git",
|
||||
args = { "reset", relative_path },
|
||||
})
|
||||
:start()
|
||||
|
||||
require("nvim-tree.actions.reloaders").reload_explorer()
|
||||
end
|
||||
|
||||
-- TODO: add here keymap for git diff window
|
||||
|
||||
require("nvim-tree").setup({
|
||||
|
||||
Reference in New Issue
Block a user