plugin/neogit: Define keymaps with lazy only
This commit is contained in:
parent
a14af6d590
commit
b264ee47ef
@ -7,25 +7,10 @@ spec.dependencies = {
|
||||
}
|
||||
|
||||
spec.keys = {
|
||||
"<Leader>vs",
|
||||
"<Leader>vc",
|
||||
{ "<Leader>vs", "<cmd>Neogit<CR>" },
|
||||
{ "<Leader>vc", "<cmd>Neogit commit<CR>" },
|
||||
}
|
||||
|
||||
spec.config = function()
|
||||
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({})
|
||||
end
|
||||
spec.config = true
|
||||
|
||||
return spec
|
||||
|
Loading…
Reference in New Issue
Block a user