chore: run stylua
This commit is contained in:
@@ -4,12 +4,10 @@ local function git_stage(node)
|
|||||||
local cwd = vim.loop.cwd()
|
local cwd = vim.loop.cwd()
|
||||||
local relative_path = string.gsub(node.absolute_path, cwd .. "/", "")
|
local relative_path = string.gsub(node.absolute_path, cwd .. "/", "")
|
||||||
|
|
||||||
Job
|
Job:new({
|
||||||
:new({
|
command = "git",
|
||||||
command = "git",
|
args = { "add", relative_path },
|
||||||
args = { "add", relative_path },
|
}):start()
|
||||||
})
|
|
||||||
:start()
|
|
||||||
|
|
||||||
require("nvim-tree.actions.reloaders").reload_explorer()
|
require("nvim-tree.actions.reloaders").reload_explorer()
|
||||||
end
|
end
|
||||||
@@ -18,12 +16,10 @@ local function git_reset(node)
|
|||||||
local cwd = vim.loop.cwd()
|
local cwd = vim.loop.cwd()
|
||||||
local relative_path = string.gsub(node.absolute_path, cwd .. "/", "")
|
local relative_path = string.gsub(node.absolute_path, cwd .. "/", "")
|
||||||
|
|
||||||
Job
|
Job:new({
|
||||||
:new({
|
command = "git",
|
||||||
command = "git",
|
args = { "reset", relative_path },
|
||||||
args = { "reset", relative_path },
|
}):start()
|
||||||
})
|
|
||||||
:start()
|
|
||||||
|
|
||||||
require("nvim-tree.actions.reloaders").reload_explorer()
|
require("nvim-tree.actions.reloaders").reload_explorer()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user