|
102 | 102 | ---@class NeogitConfigPopup Popup window options
|
103 | 103 | ---@field kind WindowKind The type of window that should be opened
|
104 | 104 |
|
| 105 | +---@class NeogitConfigFloating |
| 106 | +---@field relative? string |
| 107 | +---@field width? number |
| 108 | +---@field height? number |
| 109 | +---@field col? number |
| 110 | +---@field row? number |
| 111 | +---@field style? string |
| 112 | +---@field focusable? boolean |
| 113 | +---@field border? string |
| 114 | + |
105 | 115 | ---@alias StagedDiffSplitKind
|
106 | 116 | ---| "split" Open in a split
|
107 | 117 | ---| "vsplit" Open in a vertical split
|
|
331 | 341 | ---@field sort_branches? string Value used for `--sort` for the `git branch` command
|
332 | 342 | ---@field initial_branch_name? string Default for new branch name prompts
|
333 | 343 | ---@field kind? WindowKind The default type of window neogit should open in
|
| 344 | +---@field floating? NeogitConfigFloating The floating window style |
334 | 345 | ---@field disable_line_numbers? boolean Whether to disable line numbers
|
335 | 346 | ---@field disable_relative_line_numbers? boolean Whether to disable line numbers
|
336 | 347 | ---@field console_timeout? integer Time in milliseconds after a console is created for long running commands
|
@@ -392,6 +403,13 @@ function M.get_default_values()
|
392 | 403 | fetch_after_checkout = false,
|
393 | 404 | sort_branches = "-committerdate",
|
394 | 405 | kind = "tab",
|
| 406 | + floating = { |
| 407 | + relative = "editor", |
| 408 | + width = 0.5, |
| 409 | + height = 0.5, |
| 410 | + style = "minimal", |
| 411 | + border = "rounded", |
| 412 | + }, |
395 | 413 | initial_branch_name = "",
|
396 | 414 | disable_line_numbers = true,
|
397 | 415 | disable_relative_line_numbers = true,
|
|
0 commit comments