nvim-cmp source for hledger accounts.
cmp-hledger completes based on prefix and prefix abbreviation (e.g. E:D:C
to Expenses:Drinks:Coffee
) of hledger account names.
Prerequisites:
yay -S neovim hledger
Install with your favorite package manager:
use('kirasok/cmp-hledger')
Then, setup completion source:
require('cmp').setup {
sources = {
{
name = 'hledger',
}
}
}
ledger support
Plugin will choose to work with ledger
if it won't find hledger
binary in PATH
.
Source code available under GNU GENERAL PUBLIC LICENSE.
Thanks cmp-beancount for providng example of making cmp source.