2023-04-20 11:37:13 +01:00
|
|
|
return {
|
|
|
|
"TimUntersberger/neogit",
|
|
|
|
dependencies = {
|
|
|
|
"nvim-lua/plenary.nvim",
|
|
|
|
"sindrets/diffview.nvim",
|
|
|
|
},
|
2023-05-11 08:51:35 +01:00
|
|
|
cmd = "Neogit",
|
|
|
|
init = function()
|
|
|
|
vim.keymap.set("n", "<leader>gg", "<cmd>Neogit<CR>")
|
|
|
|
vim.keymap.set("n", "<leader>cc", "<cmd>Neogit commit<CR>")
|
|
|
|
vim.keymap.set("n", "<leader>gp", "<cmd>Neogit pull<CR>")
|
|
|
|
vim.keymap.set("n", "<leader>gP", "<cmd>Neogit push<CR>")
|
|
|
|
end,
|
|
|
|
config = true,
|
2023-05-11 10:44:22 +01:00
|
|
|
opts = {
|
2023-05-11 10:54:29 +01:00
|
|
|
disable_commit_confirmation = true,
|
2023-05-11 10:44:22 +01:00
|
|
|
disable_builtin_notifications = true,
|
2023-05-12 08:39:10 +01:00
|
|
|
-- kind = "floating",
|
|
|
|
-- commit_popup = { kind = "floating" },
|
|
|
|
-- preview_buffer = { kind = "floating" },
|
|
|
|
-- popup = { kind = "floating" },
|
2023-05-11 10:54:29 +01:00
|
|
|
integrations = { diffview = true },
|
2023-05-11 10:44:22 +01:00
|
|
|
},
|
2023-04-20 11:37:13 +01:00
|
|
|
}
|