Replace YouCompleteMe with coc.nvim

This commit is contained in:
Kenneth Benzie 2021-01-27 21:05:06 +00:00
parent 3b3121aa28
commit 4a99f582f3
3 changed files with 5 additions and 23 deletions

1
init.vim Symbolic link
View File

@ -0,0 +1 @@
vimrc

View File

@ -1,5 +1,5 @@
" YouCompleteMe
nnoremap <leader>fi :YcmCompleter FixIt<CR>
" coc.nvim
nnoremap <leader>fi :CocFix<CR>
nnoremap <leader>gd :YcmCompleter GoTo<CR>
nnoremap <leader>gt :YcmCompleter GetType<CR>
nnoremap <leader>sd :YcmShowDetailedDiagnostic<CR>

23
vimrc
View File

@ -34,22 +34,8 @@ endfor
" tabline.vim - sanely numbered tabs
Pack 'mkitt/tabline.vim'
" YouCompleteMe
Pack 'ycm-core/YouCompleteMe', {'type': 'opt'}
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:ycm_min_num_of_chars_for_completion = 1
let g:ycm_complete_in_comments = 1
let g:ycm_complete_in_strings = 1
let g:ycm_collect_identifiers_from_comments_and_strings = 1
let g:ycm_seed_identifiers_with_syntax = 1
let g:ycm_autoclose_preview_window_after_insertion = 1
let g:ycm_always_populate_location_list = 1
let g:ycm_error_symbol = '▸'
let g:ycm_warning_symbol = '▸'
let g:ycm_goto_buffer_command = 'horizontal-split'
let g:ycm_use_clangd = 0
let g:ycm_auto_hover = 0
" coc.nvim Conqueror of Completion
Pack 'neoclide/coc.nvim', {'branch': 'release'}
" ultisnips - snippet engine
Pack 'SirVer/ultisnips'
@ -200,8 +186,3 @@ Pack 'greymd/oscyank.vim', {'type': 'opt'}
if tmux#isOption('set-clipboard', 'on')
packadd oscyank.vim
endif
" Load YouComplteMe if termdebug plugin is not loaded.
if isdirectory(expand('~/.vim/pack/minpac/opt/YouCompleteMe'))
packadd YouCompleteMe
endif