ledger: added configuration

also has nvim configs
This commit is contained in:
dogeystamp 2023-05-21 21:39:29 -04:00
parent 676a19c14b
commit 2605209904
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
4 changed files with 20 additions and 0 deletions

View File

@ -31,6 +31,7 @@ function xx; $EDITOR ~/dox/not/xx.tsv; end
function dr; $EDITOR ~/dox/not/dr.txt; end
function bk; $EDITOR ~/dox/not/bk.txt; end
function rem; $EDITOR ~/dox/not/rem; end
function ldg; $EDITOR ~/dox/not/journal.ldg; end
# music recognition
function musrec

View File

@ -0,0 +1,6 @@
--file ~/dox/not/journal.ldg
commodity $
note Canadian Dollars
format $1,000.00
nomarket
default

View File

@ -0,0 +1,11 @@
" see https://plaintextaccounting.org/ for more info
let g:ledger_date_format = '%Y-%m-%d'
let g:ledger_maxwidth = 80
let g:ledger_fillstring = '·'
let g:ledger_default_commodity = '$'
let g:ledger_align_at = 50
nnoremap <leader>tc :call ledger#transaction_state_toggle(line('.'))<CR>
nnoremap <leader>tt :call ledger#transaction_date_set(line('.'), 'unshift')<CR>
inoremap <silent> <buffer> <Tab> <C-r>=ledger#autocomplete_and_align()<CR>
vnoremap <silent> <buffer> <Tab> :LedgerAlign<CR>

View File

@ -93,6 +93,8 @@ Plug 'axieax/urlview.nvim'
" fancy motions
Plug 'ggandor/leap.nvim'
Plug 'ledger/vim-ledger'
call plug#end()
if $SYSTEM_PROFILE == "DEFAULT"