Add keymaps for neogit
This commit is contained in:
parent
cf5425bec3
commit
19c453974f
@ -191,7 +191,10 @@ local function spec(use)
|
||||
"TimUntersberger/neogit",
|
||||
requires = {
|
||||
{ "nvim-lua/plenary.nvim" },
|
||||
}
|
||||
},
|
||||
config = function ()
|
||||
require("valeth.packer.neogit")
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
|
14
lua/valeth/packer/neogit.lua
Normal file
14
lua/valeth/packer/neogit.lua
Normal 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()
|
Loading…
Reference in New Issue
Block a user