Fork of zed-extensions/beancount
  • Rust 91.4%
  • Tree-sitter Query 8.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
zed-zippy[bot] e58cd3c568
Update CI workflows to 3183c04 (#33)
This PR updates the CI workflow files from the main Zed repository
based on the commit
zed-industries/zed@3183c04515

The update includes a new version of the extension CLI which adds
validation for semantic token rules for languages

Co-authored-by: zed-zippy[bot] <234243425+zed-zippy[bot]@users.noreply.github.com>
2026-03-25 18:55:06 +00:00
.github/workflows Update CI workflows to 3183c04 (#33) 2026-03-25 18:55:06 +00:00
grammars Use new extension structure 2024-02-09 11:59:20 -08:00
languages/beancount update beancount tree-sitter to v2.5.1 (#31) 2026-03-21 16:36:06 -04:00
src Allow setting path to language server executable and update to latest grammar release (#21) 2026-01-02 10:38:08 -05:00
.gitignore Add minimal LSP support (#3) 2024-11-22 12:51:55 -05:00
Cargo.lock Bump version to 0.1.2 (#32) 2026-03-21 16:46:01 -04:00
Cargo.toml Bump version to 0.1.2 (#32) 2026-03-21 16:46:01 -04:00
extension.toml Bump version to 0.1.2 (#32) 2026-03-21 16:46:01 -04:00
LICENSE Create LICENSE 2025-09-30 11:46:37 -04:00
README.md Allow setting path to language server executable and update to latest grammar release (#21) 2026-01-02 10:38:08 -05:00

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:

beancount-zed-extension-screenshot

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)