https://github.com/zed-extensions/beancount
Zed support for the Beancount language (https://beancount.github.io)
https://github.com/zed-extensions/beancount
Last synced: 5 months ago
JSON representation
Zed support for the Beancount language (https://beancount.github.io)
- Host: GitHub
- URL: https://github.com/zed-extensions/beancount
- Owner: zed-extensions
- License: apache-2.0
- Created: 2024-02-09T01:09:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-12-04T00:46:42.000Z (7 months ago)
- Last Synced: 2025-12-06T23:56:36.946Z (7 months ago)
- Language: Rust
- Size: 22.5 KB
- Stars: 15
- Watchers: 2
- Forks: 7
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-beancount - Zed
- awesome-zed-extensions - Beancount
README
# Zed Beancount
This extension adds support for the [Beancount](https://github.com/beancount/beancount) language.
## Setup
By default this extension just provides syntax highlighting for `.beancount` and `.bean` files, but also optional support for [`beancount-language-server`](https://github.com/polarmutex/beancount-language-server) as well.
To use that you will need `beancount` and `beancount-language-server` available in your path. For example, on mac:
```
brew install beancount beancount-language-server
```
With that installed Zed will show Diagnostic information inline and in the Zed Diagnostics Panel like this:

## Configuration
You can configure the beancount-language-server by adding initialization options to either your project settings or global Zed settings:
```json
// Project-specific: .zed/settings.json
// Global: ~/.config/zed/settings.json
{
"lsp": {
"beancount": {
"initialization_options": {
"journal_file": "/path/to/main.beancount"
}
}
}
}
```
### Custom Binary Path
By default, the extension searches for `beancount-language-server` in your system PATH. If you need to use a custom binary location, you can configure it:
```json
{
"lsp": {
"beancount": {
"binary": {
"path": "/custom/path/to/beancount-language-server",
"arguments": ["--debug"],
"env": {
"CUSTOM_VAR": "value"
}
}
}
}
}
```
Configuration options:
- `path`: Absolute path to the beancount-language-server binary (optional, defaults to searching PATH)
- `arguments`: Additional command-line arguments to pass to the language server (optional)
- `env`: Additional environment variables to set for the language server process (optional)