aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-09-03 01:20:04 +0800
committerGuangxiong Lin <[email protected]>2023-09-03 01:20:04 +0800
commitf1606f161273f8bdabb256b592dc338de4357682 (patch)
treecebd2eec97bc059635d571786b877935e4cb1a97
parent61954dc2b7985afb43647af40d03bad8aa04f53e (diff)
downloaddotfiles-f1606f161273f8bdabb256b592dc338de4357682.tar.gz
dotfiles-f1606f161273f8bdabb256b592dc338de4357682.tar.bz2
dotfiles-f1606f161273f8bdabb256b592dc338de4357682.zip
Update vim-ledger config
-rw-r--r--.vim/after/plugin/ledger.vim6
-rw-r--r--.vim/after/plugin/minpac.vim2
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<CR>
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')