From 30d64d123b8e10a9b96901c3e41b140dceed2872 Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Tue, 17 May 2022 22:18:17 +0300 Subject: [PATCH] format --- neovim/.config/nvim/lua/user/file-tree.lua | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/neovim/.config/nvim/lua/user/file-tree.lua b/neovim/.config/nvim/lua/user/file-tree.lua index 787352f..3bc6177 100644 --- a/neovim/.config/nvim/lua/user/file-tree.lua +++ b/neovim/.config/nvim/lua/user/file-tree.lua @@ -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({