From f1606f161273f8bdabb256b592dc338de4357682 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 3 Sep 2023 01:20:04 +0800 Subject: Update vim-ledger config --- .vim/after/plugin/ledger.vim | 6 ++++-- .vim/after/plugin/minpac.vim | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.vim/after/plugin/ledger.vim b/.vim/after/plugin/ledger.vim index 71fa5b1..13d4d98 100644 --- a/.vim/after/plugin/ledger.vim +++ b/.vim/after/plugin/ledger.vim @@ -1,4 +1,6 @@ -let g:ledger_bin = 'ledger' +let g:ledger_bin = 'hledger' +let g:ledger_is_hledger = v:true + let g:ledger_align_at = 50 let g:ledger_maxwidth = 80 let g:ledger_commodity_before = 0 @@ -8,7 +10,7 @@ let g:ledger_decimal_sep = '.' let g:ledger_commodity_sep = ' ' let g:ledger_date_format = '%Y-%m-%d' let g:ledger_extra_options = '' -let g:ledger_main = expand('$HOME/ledgers/main.journal') +let g:ledger_main = expand('$HOME/Sync/ledgers/main.journal') function! s:ledger_keymap() abort noremap { ?^\d diff --git a/.vim/after/plugin/minpac.vim b/.vim/after/plugin/minpac.vim index 5b7a16f..318e621 100644 --- a/.vim/after/plugin/minpac.vim +++ b/.vim/after/plugin/minpac.vim @@ -89,7 +89,7 @@ function! InitMinpac() abort " language specific call minpac#add('https://github.com/habamax/vim-godot.git') - call minpac#add('https://github.com/ledger/vim-ledger.git') + call minpac#add('https://github.com/ledger/vim-ledger.git', {'type': 'start'}) call minpac#add('https://github.com/axvr/org.vim.git') call minpac#add('https://github.com/chr4/nginx.vim') call minpac#add('https://github.com/preservim/vim-markdown') -- cgit v1.2.3