From c62e383664a5f61f03a85354219bff21b0997842 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 12 Oct 2023 12:17:56 +0800 Subject: Trigger auto completion for ledger file --- .vim/after/plugin/mucomplete.vim | 2 ++ 1 file changed, 2 insertions(+) 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 (TryUlti) =TryUltiSnips() imap (TryMU) TryMUcomplete() imap "\(TryUlti)\(TryMU)" +let s:ledger_cond = { t -> t =~# '\%(:\)$' } +let g:mucomplete#can_complete.ledger = { 'omni': s:ledger_cond } packadd vim-mucomplete -- cgit v1.2.3