crispgm / cmp-beancount

nvim-cmp source for beancount accounts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

nvim-cmp source for beancount accounts

License:MIT License


Languages

Language:Lua 100.0%