diff options
author | Guangxiong Lin <[email protected]> | 2022-01-24 23:53:19 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-01-24 23:53:19 +0800 |
commit | 8a42821e5638bc819f5f128cec3c02893dfea697 (patch) | |
tree | 14997747f2f8f454a45721ed96090de70e14206f | |
parent | 5aeca8955b097dc6c1be76053fd5221aa9137578 (diff) | |
download | dotfiles-8a42821e5638bc819f5f128cec3c02893dfea697.tar.gz dotfiles-8a42821e5638bc819f5f128cec3c02893dfea697.tar.bz2 dotfiles-8a42821e5638bc819f5f128cec3c02893dfea697.zip |
Update ledger.vim config
Align on commodity and add option (recommended on docs) on running
ledger
-rw-r--r-- | .vim/plugin/ledger.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.vim/plugin/ledger.vim b/.vim/plugin/ledger.vim index 0dc2e82..77f5f3a 100644 --- a/.vim/plugin/ledger.vim +++ b/.vim/plugin/ledger.vim @@ -1,8 +1,8 @@ let g:ledger_bin = 'ledger' let g:ledger_align_at = 50 let g:ledger_commodity_before = 0 - -au FileType ledger call s:ledger_keymap() +let g:ledger_align_commodity = 1 +let g:ledger_extra_options = '--pedantic --explicit --check-payees' function! s:ledger_keymap() abort noremap { ?^\d<CR> @@ -10,3 +10,5 @@ function! s:ledger_keymap() abort inoremap <silent> <Tab> <C-r>=ledger#autocomplete_and_align()<CR> vnoremap <silent> <Tab> :LedgerAlign<CR> endfunction + +au FileType ledger call s:ledger_keymap() |