With this option disabled (the default) flow will not change the buffer position at all when switching active buffers. Enable the option to return to previous behaviour where the cursor is always scrolled into view. closes #271
48 lines
1.4 KiB
Zig
48 lines
1.4 KiB
Zig
const builtin = @import("builtin");
|
|
|
|
frame_rate: usize = 60,
|
|
theme: []const u8 = "default",
|
|
input_mode: []const u8 = "flow",
|
|
gutter_line_numbers_mode: ?LineNumberMode = null,
|
|
gutter_line_numbers_style: DigitStyle = .ascii,
|
|
gutter_symbols: bool = true,
|
|
enable_terminal_cursor: bool = true,
|
|
enable_terminal_color_scheme: bool = builtin.os.tag != .windows,
|
|
highlight_current_line: bool = true,
|
|
highlight_current_line_gutter: bool = true,
|
|
highlight_columns: []const u8 = "80 100 120",
|
|
highlight_columns_alpha: u8 = 240,
|
|
highlight_columns_enabled: bool = false,
|
|
whitespace_mode: []const u8 = "none",
|
|
inline_diagnostics: bool = true,
|
|
animation_min_lag: usize = 0, //milliseconds
|
|
animation_max_lag: usize = 150, //milliseconds
|
|
enable_format_on_save: bool = false,
|
|
restore_last_cursor_position: bool = true,
|
|
follow_cursor_on_buffer_switch: bool = false, //scroll cursor into view on buffer switch
|
|
default_cursor: []const u8 = "default",
|
|
|
|
indent_size: usize = 4,
|
|
tab_width: usize = 8,
|
|
|
|
top_bar: []const u8 = "tabs",
|
|
bottom_bar: []const u8 = "mode file log selection diagnostics keybind branch linenumber clock spacer",
|
|
show_scrollbars: bool = true,
|
|
show_fileicons: bool = true,
|
|
|
|
start_debugger_on_crash: bool = false,
|
|
|
|
include_files: []const u8 = "",
|
|
|
|
pub const DigitStyle = enum {
|
|
ascii,
|
|
digital,
|
|
subscript,
|
|
superscript,
|
|
};
|
|
|
|
pub const LineNumberMode = enum {
|
|
none,
|
|
relative,
|
|
absolute,
|
|
};
|