Move highlighting to editor code and implement proto message types for hover response

This commit is contained in:
Keith Simmons 2022-06-03 14:56:21 -07:00
parent c7cc07aafb
commit 67d9abc00f
7 changed files with 279 additions and 184 deletions

View file

@ -444,7 +444,7 @@ pub struct Editor {
pub autocomplete: AutocompleteStyle,
pub code_actions_indicator: Color,
pub unnecessary_code_fade: f32,
pub hover_popover: ContainerStyle,
pub hover_popover: HoverPopover,
}
#[derive(Clone, Deserialize, Default)]
@ -622,4 +622,11 @@ impl<'de> Deserialize<'de> for SyntaxTheme {
Ok(result)
}
}
}
#[derive(Clone, Deserialize, Default)]
pub struct HoverPopover {
pub container: ContainerStyle,
pub block_style: ContainerStyle,
pub prose: TextStyle,
}