@@ -128,13 +128,7 @@ to Neovim users.
128128 -- Scope persisted settings on a per-project basis
129129 use_per_project_settings = true,
130130 -- Table of settings to never persist. Uses format "Filetype--cli-value"
131- ignored_settings = {
132- "NeogitPushPopup--force-with-lease",
133- "NeogitPushPopup--force",
134- "NeogitPullPopup--rebase",
135- "NeogitCommitPopup--allow-empty",
136- "NeogitRevertPopup--no-edit",
137- },
131+ ignored_settings = {},
138132 -- Configure highlight group features
139133 highlight = {
140134 italic = true,
@@ -2136,5 +2130,21 @@ calling the setup function:
21362130 },
21372131 })
21382132<
2133+
2134+ You can also customize existing popups via the Neogit config.
2135+ Below is an example of adding a custom switch, but you can use any function
2136+ from the builder API.
2137+ >lua
2138+ require("neogit").setup({
2139+ builders = {
2140+ NeogitPushPopup = function(builder)
2141+ builder:switch('m', 'merge_request.create', 'Create merge request', { cli_prefix = '-o ', persisted = false })
2142+ end,
2143+ },
2144+ })
2145+
2146+ Keep in mind that builder hooks are executed at the end of the popup
2147+ builder, so any switches or options added will be placed at the end.
2148+
21392149------------------------------------------------------------------------------
21402150vim:tw=78:ts=8:ft=help:norl:
0 commit comments