ledger: added configuration
also has nvim configs
This commit is contained in:
parent
676a19c14b
commit
2605209904
@ -31,6 +31,7 @@ function xx; $EDITOR ~/dox/not/xx.tsv; end
|
|||||||
function dr; $EDITOR ~/dox/not/dr.txt; end
|
function dr; $EDITOR ~/dox/not/dr.txt; end
|
||||||
function bk; $EDITOR ~/dox/not/bk.txt; end
|
function bk; $EDITOR ~/dox/not/bk.txt; end
|
||||||
function rem; $EDITOR ~/dox/not/rem; end
|
function rem; $EDITOR ~/dox/not/rem; end
|
||||||
|
function ldg; $EDITOR ~/dox/not/journal.ldg; end
|
||||||
|
|
||||||
# music recognition
|
# music recognition
|
||||||
function musrec
|
function musrec
|
||||||
|
6
src/.config/ledger/ledgerrc
Normal file
6
src/.config/ledger/ledgerrc
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
--file ~/dox/not/journal.ldg
|
||||||
|
commodity $
|
||||||
|
note Canadian Dollars
|
||||||
|
format $1,000.00
|
||||||
|
nomarket
|
||||||
|
default
|
11
src/.config/nvim/ftplugin/ledger.vim
Normal file
11
src/.config/nvim/ftplugin/ledger.vim
Normal 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>
|
@ -93,6 +93,8 @@ Plug 'axieax/urlview.nvim'
|
|||||||
" fancy motions
|
" fancy motions
|
||||||
Plug 'ggandor/leap.nvim'
|
Plug 'ggandor/leap.nvim'
|
||||||
|
|
||||||
|
Plug 'ledger/vim-ledger'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
if $SYSTEM_PROFILE == "DEFAULT"
|
if $SYSTEM_PROFILE == "DEFAULT"
|
||||||
|
Loading…
Reference in New Issue
Block a user