dotfiles/symlinks/config/nvim/after/ftplugin/ledger.vim

14 lines
478 B
VimL
Raw Normal View History

2021-10-11 22:21:52 +00:00
" -----------------------------------------------------------------------------
" - Ledger file plugin -
" -----------------------------------------------------------------------------
2021-10-16 15:36:16 +00:00
let g:ledger_date_format = '%Y-%m-%d'
2021-10-11 22:21:52 +00:00
augroup ledgerconf
autocmd!
autocmd BufWritePre <buffer> LedgerAlignBuffer
2021-10-11 22:21:52 +00:00
augroup END
2021-10-16 15:36:16 +00:00
nnoremap <buffer> <leader>lx <cmd>call ledger#entry()<CR>
noremap <silent><buffer> <leader>lc <cmd>call ledger#transaction_state_toggle(line('.'), ' *?!')<CR>