Add auto-indent support

This commit is contained in:
Jeremy Soller 2023-11-16 09:00:48 -07:00
parent b1c6505832
commit f0d9bc06e1
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
5 changed files with 14 additions and 2 deletions

View file

@ -43,6 +43,7 @@ impl Tab {
let mut editor = self.editor.lock().unwrap();
let mut font_system = FONT_SYSTEM.lock().unwrap();
let mut editor = editor.borrow_with(&mut font_system);
editor.set_auto_indent(config.auto_indent);
editor.set_passthrough(!config.vim_bindings);
editor.set_tab_width(config.tab_width);
editor.buffer_mut().set_wrap(if config.word_wrap {