1
0

plugin/neogit: Define keymaps with lazy only

This commit is contained in:
Patrick Auernig 2024-05-24 14:24:24 +02:00
parent a14af6d590
commit b264ee47ef

View File

@ -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