adit/assets/config.rhai

42 lines
541 B
Plaintext
Raw Normal View History

fn spaces_per_tab(){
return 1;
}
2023-09-15 21:29:27 -05:00
fn status_bar() {
let sb = ` ${file_name}:${y}:${x} | ${file_type} | ${line_count} Lines | HELLO`;
2023-09-15 21:29:27 -05:00
return sb;
}
2023-09-15 22:16:34 -05:00
fn welcome_message(){
let wm = `Adit | version ${adit_version}`;
return wm;
}
2023-09-16 17:30:39 -05:00
fn presave() {
// Make this more usable later
return "";
2023-09-15 22:16:34 -05:00
}
2023-09-16 17:30:39 -05:00
fn on_start(){}
fn on_key(){}
fn filetype(file) {
2023-09-15 22:16:34 -05:00
switch file {
"rs" => {
let name = "Rust";
return (name);
}
_ => {
let name = "unknown";
return (name);
}
}
2023-09-16 17:30:39 -05:00
}