aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-09 00:10:24 +0800
committerGuangxiong Lin <[email protected]>2022-04-09 00:10:24 +0800
commitef1d2c15d87a331434c87fc8c329c8821ac06db5 (patch)
tree62b7dc933d4d96dd4f66da47a0dbca866ba827d7
parent2403f3bf9a360c7ae40b2292183fc77d006a6fba (diff)
downloaddotfiles-ef1d2c15d87a331434c87fc8c329c8821ac06db5.tar.gz
dotfiles-ef1d2c15d87a331434c87fc8c329c8821ac06db5.tar.bz2
dotfiles-ef1d2c15d87a331434c87fc8c329c8821ac06db5.zip
Set default can_complete and chains in vim
-rw-r--r--.vim/after/plugin/mucomplete.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/.vim/after/plugin/mucomplete.vim b/.vim/after/plugin/mucomplete.vim
index d5de750..98146aa 100644
--- a/.vim/after/plugin/mucomplete.vim
+++ b/.vim/after/plugin/mucomplete.vim
@@ -2,12 +2,12 @@ let g:mucomplete#enable_auto_at_startup = 1
let g:mucomplete#minimum_prefix_length = 1
let g:mucomplete#empty_text_auto = 1
-let s:go_cond = { t -> t =~# '\%(\.\)$' }
let g:mucomplete#can_complete = {}
+let s:default_cond = { t -> t =~# '\%(\.\)$' }
+let g:mucomplete#can_complete.default = { 'omni': s:default_cond }
let g:mucomplete#chains = {}
+let g:mucomplete#chains.default = [ 'ulti', 'user', 'omni', 'keyn', 'path' ]
-let g:mucomplete#can_complete.go = { 'omni': s:go_cond }
-let g:mucomplete#chains.go = [ 'path', 'omni', 'keyn', 'ulti' ]
packadd vim-mucomplete