Beancount
Beancount support.
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Beancount. The extension's id is beancount.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
Zed Beancount
This extension adds support for the Beancount language.
Setup
By default this extension just provides syntax highlighting for .beancount and .bean files, but also optional support for 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:
// 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:
{
"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)