{"id":41041963,"url":"https://github.com/juev/hledger-lsp","last_synced_at":"2026-05-01T10:01:48.655Z","repository":{"id":332368181,"uuid":"1133531678","full_name":"juev/hledger-lsp","owner":"juev","description":"Language Server Protocol (LSP) implementation for hledger journal files","archived":false,"fork":false,"pushed_at":"2026-04-27T09:03:47.000Z","size":920,"stargazers_count":19,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-04-27T11:05:37.647Z","etag":null,"topics":["go","golang","hledger","lsp","lsp-server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-13T13:29:46.000Z","updated_at":"2026-04-27T09:02:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f553ce5-9281-4f26-849c-3316f3e90400","html_url":"https://github.com/juev/hledger-lsp","commit_stats":null,"previous_names":["juev/hledger-lsp"],"tags_count":41,"template":false,"template_full_name":null,"purl":"pkg:github/juev/hledger-lsp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juev%2Fhledger-lsp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juev%2Fhledger-lsp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juev%2Fhledger-lsp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juev%2Fhledger-lsp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juev","download_url":"https://codeload.github.com/juev/hledger-lsp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juev%2Fhledger-lsp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32492594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","hledger","lsp","lsp-server"],"created_at":"2026-01-22T10:43:51.452Z","updated_at":"2026-05-01T10:01:48.648Z","avatar_url":"https://github.com/juev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hledger-lsp\n\n[![Go Version](https://img.shields.io/github/go-mod/go-version/juev/hledger-lsp)](https://go.dev/)\n[![License](https://img.shields.io/github/license/juev/hledger-lsp)](LICENSE)\n[![Release](https://img.shields.io/github/v/release/juev/hledger-lsp)](https://github.com/juev/hledger-lsp/releases)\n[![coverage](https://raw.githubusercontent.com/juev/hledger-lsp/badges/.badges/main/coverage.svg)](https://github.com/juev/hledger-lsp/actions)\n\nA Language Server Protocol (LSP) implementation for [hledger](https://hledger.org/) journal files. Provides IDE features like completions, diagnostics, formatting, and more for any LSP-compatible editor.\n\n## 🎯 Features\n\n### Completions\n- **Accounts** — Fuzzy matching with frequency-based ranking\n- **Payees** — From transaction history with usage counts\n- **Commodities** — From directives and usage\n- **Tags** — Name and value completion from existing tags\n- **Dates** — today/yesterday/tomorrow + historical dates from file\n\n### Navigation\n- **Go to Definition** — Jump to account/commodity/payee declaration\n- **Find References** — Find all usages across workspace\n- **Rename** — Refactor accounts, commodities, and payees across files\n- **Workspace Symbol** — Quick search for accounts, commodities, payees\n\n### Diagnostics\n- Real-time validation of transactions\n- Balance checks and syntax errors\n\n### Other\n- **Formatting** — Automatic alignment of amounts (left-, right-, or decimal-point aligned)\n- **Hover** — Account balances on hover\n- **Semantic Tokens** — Syntax highlighting with delta support\n- **Document Symbols** — Outline navigation\n- **Folding Ranges** — Collapse transactions and directives\n- **Document Links** — Clickable include file paths\n- **Include Support** — Multi-file journals with cycle detection\n\n## 📦 Installation\n\n### From Releases\n\nDownload the latest binary for your platform from [GitHub Releases](https://github.com/juev/hledger-lsp/releases).\n\n```bash\n# macOS (Apple Silicon)\ncurl -L https://github.com/juev/hledger-lsp/releases/latest/download/hledger-lsp_darwin_arm64 -o hledger-lsp\nchmod +x hledger-lsp\nsudo mv hledger-lsp /usr/local/bin/\n\n# macOS (Intel)\ncurl -L https://github.com/juev/hledger-lsp/releases/latest/download/hledger-lsp_darwin_amd64 -o hledger-lsp\nchmod +x hledger-lsp\nsudo mv hledger-lsp /usr/local/bin/\n\n# Linux (x86_64)\ncurl -L https://github.com/juev/hledger-lsp/releases/latest/download/hledger-lsp_linux_amd64 -o hledger-lsp\nchmod +x hledger-lsp\nsudo mv hledger-lsp /usr/local/bin/\n```\n\n### From Source\n\n```bash\ngo install github.com/juev/hledger-lsp/cmd/hledger-lsp@latest\n```\n\n### Verify Installation\n\n```bash\nhledger-lsp --version\n```\n\n## 🚀 Quick Start\n\n1. Install hledger-lsp (see above)\n2. Configure your editor (see below)\n3. Open a `.journal`, `.hledger`, or `.prices` file\n4. Start typing and enjoy completions!\n\n```hledger\n2024-01-15 * grocery store\n    expenses:food  $50.00\n    assets:cash\n```\n\n## 🔧 Editor Setup\n\n- [VS Code](docs/vscode.md)\n- [Neovim](docs/neovim.md)\n- [Emacs](docs/emacs.md)\n\n## ⚙️ Configuration\n\nSee `docs/configuration.md` for supported settings and defaults.\n\n## ⚙️ Supported Features\n\n| Feature | Status |\n|---------|--------|\n| Completions | ✅ |\n| Diagnostics | ✅ |\n| Formatting | ✅ |\n| Hover | ✅ |\n| Semantic Tokens | ✅ |\n| Document Symbols | ✅ |\n| Go to Definition | ✅ |\n| Find References | ✅ |\n| Rename | ✅ |\n| Folding Ranges | ✅ |\n| Document Links | ✅ |\n| Workspace Symbol | ✅ |\n| Inline Completion | ✅ |\n\n## ⚡ Performance\n\n- **Incremental updates**: ~2.7ms for 1000 transactions (NFR \u003c 50ms)\n- **Completion**: ~4.2ms response time (NFR \u003c 100ms)\n- **Parsing**: ~11ms for 10k transactions (NFR \u003c 500ms)\n- **Memory**: ~31MB for large journals (NFR \u003c 200MB)\n\nSee [docs/benchmarks.md](docs/benchmarks.md) for detailed benchmarks.\n\n## 📚 Resources\n\n- [hledger Documentation](https://hledger.org/hledger.html)\n- [LSP Specification](https://microsoft.github.io/language-server-protocol/)\n\n## 📄 License\n\n[MIT](LICENSE) © Denis Evsyukov\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuev%2Fhledger-lsp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuev%2Fhledger-lsp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuev%2Fhledger-lsp/lists"}