@@ -128,13 +128,7 @@ to Neovim users.
128
128
-- Scope persisted settings on a per-project basis
129
129
use_per_project_settings = true,
130
130
-- 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 = {},
138
132
-- Configure highlight group features
139
133
highlight = {
140
134
italic = true,
@@ -2136,5 +2130,21 @@ calling the setup function:
2136
2130
},
2137
2131
})
2138
2132
<
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
+
2139
2149
------------------------------------------------------------------------------
2140
2150
vim:tw=78:ts=8:ft=help:norl:
0 commit comments