diff --git a/neovim/.config/nvim/after/plugin/file-tree.lua b/neovim/.config/nvim/after/plugin/file-tree.lua index 12454d8..dfe955f 100644 --- a/neovim/.config/nvim/after/plugin/file-tree.lua +++ b/neovim/.config/nvim/after/plugin/file-tree.lua @@ -4,12 +4,10 @@ local function git_stage(node) local cwd = vim.loop.cwd() local relative_path = string.gsub(node.absolute_path, cwd .. "/", "") - Job - :new({ - command = "git", - args = { "add", relative_path }, - }) - :start() + Job:new({ + command = "git", + args = { "add", relative_path }, + }):start() require("nvim-tree.actions.reloaders").reload_explorer() end @@ -18,12 +16,10 @@ 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() + Job:new({ + command = "git", + args = { "reset", relative_path }, + }):start() require("nvim-tree.actions.reloaders").reload_explorer() end