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

View File

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