diff options
author | Guangxiong Lin <[email protected]> | 2023-09-06 23:28:10 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2023-09-06 23:28:10 +0800 |
commit | 7f953885f8c56e9dc4cb8a3701f89f200ff8dfb4 (patch) | |
tree | 3bfd98f7944563a70dc42bc52df6cf2916658440 | |
parent | 224311af0e2f9239984537a6a06b66240f2b2621 (diff) | |
download | dotfiles-7f953885f8c56e9dc4cb8a3701f89f200ff8dfb4.tar.gz dotfiles-7f953885f8c56e9dc4cb8a3701f89f200ff8dfb4.tar.bz2 dotfiles-7f953885f8c56e9dc4cb8a3701f89f200ff8dfb4.zip |
Avoid scanning tags when completing
-rw-r--r-- | .vim/after/plugin/mucomplete.vim | 2 | ||||
-rw-r--r-- | .vimrc | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/.vim/after/plugin/mucomplete.vim b/.vim/after/plugin/mucomplete.vim index e126e31..2f5b30a 100644 --- a/.vim/after/plugin/mucomplete.vim +++ b/.vim/after/plugin/mucomplete.vim @@ -8,7 +8,7 @@ let s:default_cond = { t -> strlen(&omnifunc) > 0 && 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' ] + \ [ 'ulti', 'user', 'omni', 'c-p', 'path' ] let s:c_cond = { t -> strlen(&omnifunc) > 0 && t =~# '\%(\.\|->\)$' } let g:mucomplete#can_complete.c = { 'omni': s:c_cond } @@ -59,6 +59,7 @@ if !has('nvim') set completeopt+=popup set completepopup=align:menu,border:off,highlight:WildMenu endif +set complete=.,w,b,u,i " Don't use tags as there may be lots of tags set shortmess+=c set belloff+=ctrlg @@ -141,7 +142,7 @@ nnoremap <leader>cd :cd %:p:h<CR> :pwd<CR> nnoremap <c-g><c-g> <Esc> cnoremap <C-G> <C-C> -highlight Pmenu ctermbg=grey +" highlight Pmenu ctermbg=grey packadd! onedark.vim silent colorscheme onedark |