aboutsummaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim')
-rw-r--r--.vim/plugin/ledger.vim6
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()