aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-08 09:35:03 +0800
committerGuangxiong Lin <[email protected]>2022-04-08 09:35:03 +0800
commit7dce57ae076e60c297d0035b72e0a63b6dbfaeb5 (patch)
treef308dac10d4073268e0387760b6ba6a49fb4d92d
parenta9793c04508fdb582d69138dde04583c9f4e5c0f (diff)
downloaddotfiles-7dce57ae076e60c297d0035b72e0a63b6dbfaeb5.tar.gz
dotfiles-7dce57ae076e60c297d0035b72e0a63b6dbfaeb5.tar.bz2
dotfiles-7dce57ae076e60c297d0035b72e0a63b6dbfaeb5.zip
Update mucomplete config (vim)
-rw-r--r--.vim/after/plugin/mucomplete.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/.vim/after/plugin/mucomplete.vim b/.vim/after/plugin/mucomplete.vim
index 7d16cfb..d5de750 100644
--- a/.vim/after/plugin/mucomplete.vim
+++ b/.vim/after/plugin/mucomplete.vim
@@ -2,4 +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 g:mucomplete#chains = {}
+
+let g:mucomplete#can_complete.go = { 'omni': s:go_cond }
+let g:mucomplete#chains.go = [ 'path', 'omni', 'keyn', 'ulti' ]
+
packadd vim-mucomplete