robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
710431c696
master
1if exists ( 'b:did_ftplugin' ) 2finish 3endif 4 5let b: did_ftplugin = 1 6let b: undo_ftplugin = 'setlocal foldmethod< comments< commentstring< omnifunc<' 7let b: undo_ftplugin .= '| delc -buffer AlignCommodity' 8let b: undo_ftplugin .= '| delc -buffer GetContext' 9 10setl foldmethod = syntax 11setl comments = b:; 12setl commentstring = ;\ %s 13compiler bean_check 14 15" This variable customizes the behavior of the AlignCommodity command. 16if ! exists ( 'g:beancount_separator_col' ) 17let g: beancount_separator_col = 50 18endif 19if ! exists ( 'g:beancount_account_completion' ) 20let g: beancount_account_completion = 'default' 21endif 22if ! exists ( 'g:beancount_detailed_first' ) 23let g: beancount_detailed_first = 0 24endif 25 26command ! -buffer -range AlignCommodity 27 \:call beancount#align_commodity(<line1>, <line2>) 28 29command ! -buffer -range GetContext 30 \:call beancount#get_context() 31 32" Omnifunc for account completion. 33if get ( g:, 'beancount_completion_enable' , 0 ) 34setl omnifunc = beancountcomplete#complete 35endif