feat: neogit use current buffer as cwd

Current working directory for git is now the current buffer.
This commit is contained in:
Muhammad Nauman Raza 2024-01-16 20:51:47 +00:00
parent 08decb7244
commit 2f864fbed0
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

@ -23,8 +23,9 @@ wk.register({
},
g = {
name = "git",
p = { "<cmd>Neogit cwd=%:p:h push<cr>", "Push Popup" },
c = { "<cmd>Neogit cwd=%:p:h commit<cr>", "Commit Popup" },
p = { "<cmd>Neogit cwd=" .. vim.fn.expand("%:p:h") .. " push<cr>", "Push Popup" },
c = { "<cmd>Neogit cwd=" .. vim.fn.expand("%:p:h") .. " commit<cr>", "Commit Popup" },
g = { "<cmd>Neogit<cr>", "Neogit" },
},
["."] = { ":e ", "Edit File", silent = false },
}, { prefix = "<leader>" })