Initialize and run the application
()
| 13 | /// Application configuration |
| 14 | pub struct SetuApp; |
| 15 | |
| 16 | impl SetuApp { |
| 17 | /// Initialize and run the application |
| 18 | pub fn run() { |
| 19 | env_logger::init(); |
| 20 | |
| 21 | gpui_platform::application() |
| 22 | .with_assets(Assets) |
| 23 | .run(|cx: &mut App| { |
| 24 | // Initialize gpui-component (must be called before using any gpui-component features) |
| 25 | gpui_component::init(cx); |
| 26 | init_completion_navigation(cx); |
| 27 | init_code_editor(cx); |
| 28 | |
| 29 | // Register bulk key:value tree-sitter grammar for headers/params/env editors |
| 30 | register_bulk_kv_language(); |
| 31 | |
| 32 | // Apply our custom color theme to gpui-component |
| 33 | init_theme(cx); |
| 34 | |
| 35 | // Register actions and keybindings |
| 36 | Self::register_actions(cx); |
| 37 | Self::register_keybindings(cx); |
| 38 |
nothing calls this directly
no test coverage detected