You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB

local M = {
"neogitorg/neogit",
event = "VeryLazy",
}
function M.config()
local icons = require "user.icons"
local wk = require "which-key"
wk.register {
["<leader>gg"] = { "<cmd>Neogit<CR>", "Neogit" },
}
require("neogit").setup {
disable_signs = false,
-- disable_hint = true,
disable_context_highlighting = false,
disable_commit_confirmation = true,
disable_insert_on_commit = "auto",
-- Neogit refreshes its internal state after specific events, which can be expensive depending on the repository size.
-- Disabling `auto_refresh` will make it so you have to manually refresh the status after you open it.
auto_refresh = true,
disable_builtin_notifications = false,
use_magit_keybindings = false,
-- Change the default way of opening neogit
kind = "tab",
-- Change the default way of opening the commit popup
commit_popup = {
kind = "split",
},
-- Change the default way of opening popups
popup = {
kind = "split",
},
-- customize displayed signs
signs = {
-- { CLOSED, OPENED }
section = { icons.ui.ChevronRight, icons.ui.ChevronShortDown },
item = { icons.ui.ChevronRight, icons.ui.ChevronShortDown },
hunk = { "", "" },
},
integrations = {
diffview = true,
},
}
end
return M