1
0

Add keymaps for neogit

This commit is contained in:
Patrick Auernig 2023-05-27 13:33:23 +02:00
parent cf5425bec3
commit 19c453974f
2 changed files with 18 additions and 1 deletions

View File

@ -191,7 +191,10 @@ local function spec(use)
"TimUntersberger/neogit",
requires = {
{ "nvim-lua/plenary.nvim" },
}
},
config = function ()
require("valeth.packer.neogit")
end
}

View File

@ -0,0 +1,14 @@
local neogit = require("neogit")
local function git_status()
neogit.open()
end
local function git_commit()
neogit.open({ "commit" })
end
vim.keymap.set("n", "<Leader>vs", git_status)
vim.keymap.set("n", "<Leader>vc", git_commit)
neogit.setup()