Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 920 Bytes

README.md

File metadata and controls

43 lines (28 loc) · 920 Bytes

cmp-hledger

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.

Setup

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.

License

Source code available under GNU GENERAL PUBLIC LICENSE.

Credits

Thanks cmp-beancount for providng example of making cmp source.