Add code folding indicators into the gutter.

This commit is contained in:
Mikayla Maki
2023-02-28 16:34:28 -08:00
parent 514da604d7
commit e3061066c9
7 changed files with 239 additions and 85 deletions
+8
View File
@@ -562,6 +562,7 @@ pub struct Editor {
pub invalid_hint_diagnostic: DiagnosticStyle,
pub autocomplete: AutocompleteStyle,
pub code_actions: CodeActions,
pub folds: Folds,
pub unnecessary_code_fade: f32,
pub hover_popover: HoverPopover,
pub link_definition: HighlightStyle,
@@ -638,6 +639,13 @@ pub struct CodeActions {
pub vertical_scale: f32,
}
#[derive(Clone, Deserialize, Default)]
pub struct Folds {
#[serde(default)]
pub indicator: Color,
pub fold_background: Color,
}
#[derive(Clone, Deserialize, Default)]
pub struct DiffStyle {
pub inserted: Color,