Rust-analyzer trims trailing newline just before EOF?

⚓ Rust    📅 2025-07-20    👤 surdeus    👁️ 3      

surdeus

Does rust-analyzer trims newlines just before EOF? I am trying out Neovim with rustaceanvim, using LSP fallback as my formatter for Rust. Every time I save a file, my newline just before EOF gets discarded. Is RA doing this? This comment from r/neovim does say so. If so, how do I turn it off?

2 posts - 2 participants

Read full topic

🏷️ rust_feed