From 61dd8af57c55b8319b7d29ed058b31f1ee39c9b3 Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 1 Nov 2023 17:49:07 +0100 Subject: [PATCH] change neogit behavior --- nvim/.config/nvim/lua/plugins/git.lua | 6 +++--- nvim/.config/nvim/lua/plugins/ui.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/git.lua b/nvim/.config/nvim/lua/plugins/git.lua index 44e7f90..5b49ddd 100644 --- a/nvim/.config/nvim/lua/plugins/git.lua +++ b/nvim/.config/nvim/lua/plugins/git.lua @@ -12,12 +12,12 @@ return { "https://github.com/NeogitOrg/neogit", keys = { { - 'gs', + 'gn', function() - return require('neogit').open() + return require('neogit').open({cwd = "%:p:h"}) end, desc = 'Open neogit', - }, + } }, cmd = "Neogit", diff --git a/nvim/.config/nvim/lua/plugins/ui.lua b/nvim/.config/nvim/lua/plugins/ui.lua index 690614a..ea39f80 100644 --- a/nvim/.config/nvim/lua/plugins/ui.lua +++ b/nvim/.config/nvim/lua/plugins/ui.lua @@ -40,7 +40,7 @@ return { config = function() require("nvim-tree").setup({ update_focused_file = { - enable = true, + enable = false, update_root = true, }, diagnostics = {