aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-10-12 12:17:56 +0800
committerGuangxiong Lin <[email protected]>2023-10-12 12:17:56 +0800
commitc62e383664a5f61f03a85354219bff21b0997842 (patch)
tree776e6765bf16e3d521bc514002650e817d29d940
parent1c5ef09a4902b817e8ce21026f862e2e31481dcc (diff)
downloaddotfiles-c62e383664a5f61f03a85354219bff21b0997842.tar.gz
dotfiles-c62e383664a5f61f03a85354219bff21b0997842.tar.bz2
dotfiles-c62e383664a5f61f03a85354219bff21b0997842.zip
Trigger auto completion for ledger file
-rw-r--r--.vim/after/plugin/mucomplete.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/.vim/after/plugin/mucomplete.vim b/.vim/after/plugin/mucomplete.vim
index 2f5b30a..f85011a 100644
--- a/.vim/after/plugin/mucomplete.vim
+++ b/.vim/after/plugin/mucomplete.vim
@@ -44,5 +44,7 @@ endf
inoremap <plug>(TryUlti) <c-r>=TryUltiSnips()<cr>
imap <expr> <silent> <plug>(TryMU) TryMUcomplete()
imap <expr> <silent> <tab> "\<plug>(TryUlti)\<plug>(TryMU)"
+let s:ledger_cond = { t -> t =~# '\%(:\)$' }
+let g:mucomplete#can_complete.ledger = { 'omni': s:ledger_cond }
packadd vim-mucomplete