aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-10-12 12:18:25 +0800
committerGuangxiong Lin <[email protected]>2023-10-12 12:18:25 +0800
commit18d7fa5d2841d35beae189cab6c1934b250438cc (patch)
tree18402f94247ae32c926830f36381938e969d56ef
parentc62e383664a5f61f03a85354219bff21b0997842 (diff)
downloaddotfiles-18d7fa5d2841d35beae189cab6c1934b250438cc.tar.gz
dotfiles-18d7fa5d2841d35beae189cab6c1934b250438cc.tar.bz2
dotfiles-18d7fa5d2841d35beae189cab6c1934b250438cc.zip
Remove intergration with ultisnips
-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 }