Add config options for showing and hiding the top menu and line index

This commit is contained in:
2025-06-12 21:16:33 +03:00
parent 444c355117
commit dd0cc2a293
5 changed files with 30 additions and 6 deletions
+4
View File
@@ -10,6 +10,8 @@ import (
type TyperConfig struct {
SelectedStyle string `yaml:"selected_style,omitempty"`
FallbackStyle string `yaml:"fallback_style,omitempty"`
ShowTopMenu bool `yaml:"show_top_menu,omitempty"`
ShowLineIndex bool `yaml:"show_line_index,omitempty"`
TabIndentation int `yaml:"tab_indentation,omitempty"`
}
@@ -19,6 +21,8 @@ func readConfig() {
Config = TyperConfig{
SelectedStyle: "default",
FallbackStyle: "default-fallback",
ShowTopMenu: true,
ShowLineIndex: true,
TabIndentation: 4,
}