From 8a42821e5638bc819f5f128cec3c02893dfea697 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Mon, 24 Jan 2022 23:53:19 +0800 Subject: Update ledger.vim config Align on commodity and add option (recommended on docs) on running ledger --- .vim/plugin/ledger.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.vim/plugin') 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 @@ -10,3 +10,5 @@ function! s:ledger_keymap() abort inoremap =ledger#autocomplete_and_align() vnoremap :LedgerAlign endfunction + +au FileType ledger call s:ledger_keymap() -- cgit v1.2.3