crispgm / cmp-beancount

nvim-cmp source for beancount accounts
MIT License
35 stars 4 forks source link
beancount neovim-plugin nvim-cmp

cmp-beancount

nvim-cmp source for beancount accounts.

cmp-beancount completes based on prefix and prefix abbreviation (e.g. E:D:C to Expenses:Drinks:Coffee) of beancount account names.

Complete by prefix: Completion

Complete by abbreviation: Abbreviation

Setup

Prerequisites:

pip3 install neovim
pip3 install beancount

Install with your favorite package manager:

use('crispgm/cmp-beancount')

Then, setup completion source:

require('cmp').setup {
  sources = {
    {
      name = 'beancount',
      option = {
        account = '/path/to/account.bean'
      }
    }
  }
}

License

MIT