feat: neogit use current buffer as cwd
Current working directory for git is now the current buffer.
This commit is contained in:
parent
08decb7244
commit
2f864fbed0
|
@ -23,8 +23,9 @@ wk.register({
|
||||||
},
|
},
|
||||||
g = {
|
g = {
|
||||||
name = "git",
|
name = "git",
|
||||||
p = { "<cmd>Neogit cwd=%:p:h push<cr>", "Push Popup" },
|
p = { "<cmd>Neogit cwd=" .. vim.fn.expand("%:p:h") .. " push<cr>", "Push Popup" },
|
||||||
c = { "<cmd>Neogit cwd=%:p:h commit<cr>", "Commit Popup" },
|
c = { "<cmd>Neogit cwd=" .. vim.fn.expand("%:p:h") .. " commit<cr>", "Commit Popup" },
|
||||||
|
g = { "<cmd>Neogit<cr>", "Neogit" },
|
||||||
},
|
},
|
||||||
["."] = { ":e ", "Edit File", silent = false },
|
["."] = { ":e ", "Edit File", silent = false },
|
||||||
}, { prefix = "<leader>" })
|
}, { prefix = "<leader>" })
|
||||||
|
|
Loading…
Reference in a new issue