https://github.com/crispgm/cmp-beancount
nvim-cmp source for beancount accounts
https://github.com/crispgm/cmp-beancount
beancount neovim-plugin nvim-cmp
Last synced: 9 months ago
JSON representation
nvim-cmp source for beancount accounts
- Host: GitHub
- URL: https://github.com/crispgm/cmp-beancount
- Owner: crispgm
- License: mit
- Created: 2021-09-27T10:35:52.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-16T06:29:36.000Z (over 1 year ago)
- Last Synced: 2025-03-27T17:22:29.794Z (10 months ago)
- Topics: beancount, neovim-plugin, nvim-cmp
- Language: Lua
- Homepage:
- Size: 145 KB
- Stars: 39
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:

Complete by abbreviation:

## Setup
Prerequisites:
```shell
pip3 install neovim
pip3 install beancount
```
Install with your favorite package manager:
```lua
use('crispgm/cmp-beancount')
```
Then, setup completion source:
```lua
require('cmp').setup {
sources = {
{
name = 'beancount',
option = {
account = '/path/to/account.bean'
}
}
}
}
```
## License
MIT