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 = {