Description
bacon-ls is a language server for Rust that publishes diagnostics from Bacon, a background checker for Rust projects. It is a companion to rust-analyzer rather than a replacement. The README says rust-analyzer can become slow on large codebases when it handles diagnostics, so bacon-ls takes over that job while rust-analyzer keeps doing completion, analysis and refactoring. bacon-ls has two backends. The default Cargo backend runs cargo check, or cargo clippy, with JSON output and publishes the messages, and it can give live diagnostics as you type. The Bacon backend reads the export file that Bacon produces, which is useful if you already run Bacon. Diagnostics are pushed to the editor on save, open, close and rename, with precise positions and macro-expanded spans, and replacement code actions suggested by cargo and clippy are included. Setup guides cover VS Code, Mason.nvim, Neovim with LazyVim, Helix, coc.nvim and a manual install, and Nix is supported. The project is open source on GitHub.…
Highlights
- Language server publishing Bacon diagnostics
- Cargo backend with cargo check and clippy
- Bacon backend that reads Bacon export files
- Replacement code actions from cargo and clippy
- Setup for VS Code, Neovim, Helix and coc.nvim
Ratings & Reviews
No ratings yet
Be the first to rate Bacon LS.
People also visit
Kotlin Language Server
Kotlin code completion, diagnostics and more for any editor/IDE
Bacon LS FAQ
What does bacon-ls do?
It is a Language Server Protocol server that sends Rust compiler and linter diagnostics from Bacon or cargo to your editor.
Does it replace rust-analyzer?
No. The README says it is a companion for rust-analyzer, which still handles completion, analysis and refactoring.
Which editors are supported?
The README covers VS Code, Neovim with Mason.nvim or LazyVim, Helix, coc.nvim, and a manual setup for other editors.
Which backend should I use?
The Cargo backend is the default and needs no extra tool. Choose the Bacon backend if you already run Bacon in the background.
Is it free?
Yes. The project is open source and public on GitHub.
What are the best Bacon LS alternatives?
Popular alternatives to Bacon LS include rust-analyzer, Biome and Kotlin Language Server. See all Bacon LS alternatives








