Add indent action and tab width

This commit is contained in:
Jeremy Soller 2023-11-01 13:31:53 -06:00
parent d53932bd7c
commit 7855dce09d
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
4 changed files with 210 additions and 3 deletions

View file

@ -156,6 +156,14 @@ impl<'a> Edit for ViEditor<'a> {
self.editor.set_select_opt(select_opt);
}
fn tab_width(&self) -> usize {
self.editor.tab_width()
}
fn set_tab_width(&mut self, tab_width: usize) {
self.editor.set_tab_width(tab_width);
}
fn shape_as_needed(&mut self, font_system: &mut FontSystem) {
self.editor.shape_as_needed(font_system);
}