nixos/home/tui/config/nvim/lua/plugins/neogit.lua

26 lines
758 B
Lua
Raw Normal View History

return {
"TimUntersberger/neogit",
dependencies = {
"nvim-lua/plenary.nvim",
"sindrets/diffview.nvim",
},
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,
opts = {
disable_builtin_notifications = true,
kind = "floating",
commit_popup = { kind = "floating" },
preview_buffer = { kind = "floating" },
popup = { kind = "floating" },
integrations = {
diffview = true,
},
},
}