Implement tab width config

This commit is contained in:
Jeremy Soller 2023-11-16 08:44:23 -07:00
parent 67d2e4adb7
commit b1c6505832
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
5 changed files with 25 additions and 5 deletions

View file

@ -44,6 +44,7 @@ impl Tab {
let mut font_system = FONT_SYSTEM.lock().unwrap();
let mut editor = editor.borrow_with(&mut font_system);
editor.set_passthrough(!config.vim_bindings);
editor.set_tab_width(config.tab_width);
editor.buffer_mut().set_wrap(if config.word_wrap {
Wrap::Word
} else {