MCPcopy Create free account
hub / github.com/bajrangCoder/setu / run

Method run

src/app.rs:15–35  ·  view source on GitHub ↗

Initialize and run the application

()

Source from the content-addressed store, hash-verified

13/// Application configuration
14pub struct SetuApp;
15
16impl 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

Callers

nothing calls this directly

Calls 1

init_themeFunction · 0.85

Tested by

no test coverage detected