1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

remove dictionary completion

Dictionary completion is rather useless and hangs Neovim when accidentally triggered.
It is better to remove it entirely.
This commit is contained in:
jdhao 2020-05-08 16:25:02 +08:00 committed by GitHub
parent 5cda026992
commit 73d8d87b02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,11 +133,7 @@ set completeopt-=preview " Disable the preview window
set pumheight=15 " Maximum number of items to show in popup menu
" Scan files given by `dictionary` option
set complete+=k,kspell complete-=w complete-=b complete-=u complete-=t
" Dictionary files for different systems
let g:MY_DICT = expand(g:nvim_config_root . '/dict/words')
let &dictionary = &dictionary . ',' . g:MY_DICT
set complete+=kspell complete-=w complete-=b complete-=u complete-=t
set spelllang=en,cjk " Spell languages
set spellsuggest+=10 " The number of suggestions shown in the screen for z=