mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
33 lines
773 B
Lua
33 lines
773 B
Lua
local neogit = require('neogit')
|
|
--neogit.config.use_magit_keybindings()
|
|
|
|
neogit.setup {
|
|
disable_signs = false,
|
|
disable_context_highlighting = false,
|
|
disable_commit_confirmation = true,
|
|
-- customize displayed signs
|
|
signs = {
|
|
-- { CLOSED, OPENED }
|
|
section = { ">", "v" },
|
|
item = { ">", "v" },
|
|
hunk = { "", "" },
|
|
},
|
|
integrations = {
|
|
diffview = true
|
|
},
|
|
-- override/add mappings
|
|
mappings = {
|
|
-- modify status buffer mappings
|
|
status = {
|
|
-- Adds a mapping with "B" as key that does the "BranchPopup" command
|
|
["B"] = "BranchPopup",
|
|
["C"] = "CommitPopup",
|
|
-- ["P"] = "PullPopup",
|
|
["S"] = "Stage",
|
|
-- ["D"] = "Discard",
|
|
-- Removes the default mapping of "s"
|
|
-- ["s"] = "",
|
|
}
|
|
}
|
|
}
|