1.0.0 • Published 4 years ago

beancount-langserver v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

beancount-langserver

A Language Server Protocol (LSP) for beancount files

Table of Contents

Installation

TODO: create VS Code extension to run this language server

The server can be installed via npm (or from source).

npm install -g @bryall/beancount-langserver

Then, you should be able to run the language server with the following command:

beancount-langserver

Follow the instructions below to integrate the language server into your editor.

Alternative: Compile and install from source

First, clone this repo and compile it. npm link will add beancount-langserver to the PATH.

git clone git@github.com:bryall/beancount-langserver.git
cd beancount-langserver
npm install
npm run compile
npm link

Requirements

You will need to install beancount to get all diagnostics.

pip install -g beancount

Configuration

TODO

Features

Supports Beancount v2

FeatureDescription
diagnosticsProvided via beancoubt
formattingShould generate edits silimar to bean-format
completionsShow completions for Payees, Accounts, Date
definitionsPlanned for future release
foldingPlanned for future release
hoverPlanned for future release
renamePlanned for future release

Server Settings

This server contributes the following settings:

Settings may need a restart to be applied.

Editor Support

VS Code

Plan to make a VS Code extesion in the future

Vim

Tested and Developed on Neovim v0.5 (master branch)

SETUP TODO

Emacs

TODO

Contributing

Please do :)