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