aboutsummaryrefslogtreecommitdiff
path: root/.vim/after
diff options
context:
space:
mode:
Diffstat (limited to '.vim/after')
-rw-r--r--.vim/after/plugin/mucomplete.vim26
1 files changed, 1 insertions, 25 deletions
diff --git a/.vim/after/plugin/mucomplete.vim b/.vim/after/plugin/mucomplete.vim
index f85011a..99b59c8 100644
--- a/.vim/after/plugin/mucomplete.vim
+++ b/.vim/after/plugin/mucomplete.vim
@@ -2,6 +2,7 @@ let g:mucomplete#enable_auto_at_startup = 1
let g:mucomplete#minimum_prefix_length = 1
let g:mucomplete#empty_text_auto = 1
let g:mucomplete#no_mappings = 1
+let g:mucomplete#always_use_completeopt = 1
let g:mucomplete#can_complete = {}
let s:default_cond = { t -> strlen(&omnifunc) > 0 && t =~# '\%(\.\)$' }
@@ -19,31 +20,6 @@ let g:mucomplete#can_complete.cpp = { 'omni': s:cpp_cond }
let g:mucomplete#can_complete.objcpp = { 'omni': s:cpp_cond }
let g:mucomplete#can_complete.cuda = { 'omni': s:cpp_cond }
-imap <s-tab> <plug>(MUcompleteBwd)
-imap <expr> <c-g><c-g> pumvisible() ? "\<plug>(MUcompleteOut)" : "\<esc>"
-
-" Integrate with UltiSnips
-
-inoremap <silent> <expr> <plug>MyCR
- \ mucomplete#ultisnips#expand_snippet("\<cr>")
-imap <cr> <plug>MyCR
-
-let g:ulti_expand_or_jump_res = 0
-
-fun! TryUltiSnips()
- if !pumvisible() " With the pop-up menu open, let Tab move down
- call UltiSnips#ExpandSnippetOrJump()
- endif
- return ''
-endf
-
-fun! TryMUcomplete()
- return g:ulti_expand_or_jump_res ? "" : "\<plug>(MUcompleteFwd)"
-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 }