feat: add config option enable_terminal_color_scheme

This option defaults to off on windows because windows does not support
resetting the terminal colors on exit.

closes #26
This commit is contained in:
CJ van den Berg 2024-08-21 22:07:36 +02:00
parent 08e06bc8dd
commit c627a49518
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,5 @@
const builtin = @import("builtin");
frame_rate: usize = 60,
theme: []const u8 = "default",
input_mode: []const u8 = "flow",
@ -11,6 +13,7 @@ vim_normal_gutter_line_numbers_relative: bool = true,
vim_visual_gutter_line_numbers_relative: bool = true,
vim_insert_gutter_line_numbers_relative: bool = false,
enable_terminal_cursor: bool = false,
enable_terminal_color_scheme: bool = builtin.os.tag != .windows,
highlight_current_line: bool = true,
highlight_current_line_gutter: bool = true,
show_whitespace: bool = false,