change neogit behavior

This commit is contained in:
vincent 2023-11-01 17:49:07 +01:00
parent e0c15e9e3f
commit 61dd8af57c
2 changed files with 4 additions and 4 deletions

View File

@ -12,12 +12,12 @@ return {
"https://github.com/NeogitOrg/neogit",
keys = {
{
'<leader>gs',
'<leader>gn',
function()
return require('neogit').open()
return require('neogit').open({cwd = "%:p:h"})
end,
desc = 'Open neogit',
},
}
},
cmd = "Neogit",

View File

@ -40,7 +40,7 @@ return {
config = function()
require("nvim-tree").setup({
update_focused_file = {
enable = true,
enable = false,
update_root = true,
},
diagnostics = {