|
321 | 321 | ---@field kind? WindowKind The default type of window neogit should open in
|
322 | 322 | ---@field disable_line_numbers? boolean Whether to disable line numbers
|
323 | 323 | ---@field disable_relative_line_numbers? boolean Whether to disable line numbers
|
| 324 | +---@field enable_text_wrap? boolean Whether to soft wrap text |
324 | 325 | ---@field console_timeout? integer Time in milliseconds after a console is created for long running commands
|
325 | 326 | ---@field auto_show_console? boolean Automatically show the console if a command takes longer than console_timeout
|
326 | 327 | ---@field auto_show_console_on? string Specify "output" (show always; default) or "error" if `auto_show_console` enabled
|
@@ -382,6 +383,7 @@ function M.get_default_values()
|
382 | 383 | initial_branch_name = "",
|
383 | 384 | disable_line_numbers = true,
|
384 | 385 | disable_relative_line_numbers = true,
|
| 386 | + enable_text_wrap = false, |
385 | 387 | -- The time after which an output console is shown for slow running commands
|
386 | 388 | console_timeout = 2000,
|
387 | 389 | -- Automatically show console if a command takes more than console_timeout milliseconds
|
@@ -1122,6 +1124,7 @@ function M.validate_config()
|
1122 | 1124 | validate_kind(config.kind, "kind")
|
1123 | 1125 | validate_type(config.disable_line_numbers, "disable_line_numbers", "boolean")
|
1124 | 1126 | validate_type(config.disable_relative_line_numbers, "disable_relative_line_numbers", "boolean")
|
| 1127 | + validate_type(config.enable_text_wrap, "enable_text_wrap", "boolean") |
1125 | 1128 | validate_type(config.auto_show_console, "auto_show_console", "boolean")
|
1126 | 1129 | validate_type(config.auto_show_console_on, "auto_show_console_on", "string")
|
1127 | 1130 | validate_type(config.auto_close_console, "auto_close_console", "boolean")
|
|
0 commit comments