diff --git a/crates/ferrite-core/src/buffer.rs b/crates/ferrite-core/src/buffer.rs index a8bc976..9f2ba61 100644 --- a/crates/ferrite-core/src/buffer.rs +++ b/crates/ferrite-core/src/buffer.rs @@ -212,6 +212,8 @@ impl Buffer { syntax.update_text(rope.clone()); } + // TODO add parsing of shebang and other heuristics + let name = path.file_name().unwrap().to_string_lossy().into(); Ok(Self {