Completor removed, use CoC instead

This commit is contained in:
Gitea 2022-04-13 05:59:47 -04:00
parent f9420dcea9
commit 9e38a6e433
2 changed files with 13 additions and 6 deletions

9
.vimrc
View File

@ -11,9 +11,9 @@ Plug 'junegunn/goyo.vim'
Plug 'junegunn/limelight.vim' Plug 'junegunn/limelight.vim'
" Auto Completes " Auto Completes
" Plug 'neoclide/coc.nvim', Plug 'neoclide/coc.nvim',
" Plug 'sheerun/vim-polyglot' " Plug 'sheerun/vim-polyglot'
Plug 'maralla/completor.vim' " Plug 'maralla/completor.vim'
" Color Schemes " Color Schemes
Plug 'rakr/vim-two-firewatch' Plug 'rakr/vim-two-firewatch'
@ -103,10 +103,11 @@ let g:limelight_default_coefficient = 0.7
" Set it to -1 not to overrule hlsearch " Set it to -1 not to overrule hlsearch
let g:limelight_priority = -1 let g:limelight_priority = -1
"Completor Tab "CoC Tab
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<cr>" inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
let g:coc_disable_startup_warning = 1
"Goyo Setup "Goyo Setup
"Call Limelight every time enter Goyo "Call Limelight every time enter Goyo

View File

@ -40,9 +40,15 @@ Toggle Goyo from command input mode `:Goyo` or use the <F8> shortcut.
Toggle Limelight from command input mode `:Limelight` or use the <Leader><l> shortcut. Toggle Limelight from command input mode `:Limelight` or use the <Leader><l> shortcut.
### Completor ### Autocomplete : Completor
> Completor is not good for servers, as it requires vim version with python support.
### Autocomplete : coc
coc now can use tab to navigate completion list
For autocomplete I choose completor. Jut type as usual and the completor will offer some completion, use tab to choose.
## Future Improvement ## Future Improvement