adit/assets/config.rhai

38 lines
496 B
Plaintext

fn status_bar() {
let sb = ` ${file_name}:${y}:${x} | ${file_type} | ${line_count} Lines`;
return sb;
}
fn welcome_message(){
let wm = `Adit | version ${adit_version}`;
return wm;
}
fn presave() {
// Make this more usable later
return "";
}
fn on_start(){}
fn on_key(){}
fn filetype(file) {
switch file {
"rs" => {
let name = "Rust";
return (name);
}
_ => {
let name = "unknown";
return (name);
}
}
}