Use upstream YouCompleteMe on macOS

The oblitum fork of YouCompleteMe is getting dated and uses LLVM 4.0 on
macOS, this results in erroneous errors in the system headers on macOS
since it's not been updated to match upstream. Use Valloric's repo to
avoid these errors on macOS.
This commit is contained in:
Kenneth Benzie 2018-10-04 10:18:01 +01:00
parent c326a04f70
commit 64c8bc6b40

9
vimrc
View File

@ -36,8 +36,13 @@ Plug 'mkitt/tabline.vim'
" YouCompleteMe " YouCompleteMe
" TODO: Try out neovim completion plugins to see if they are better " TODO: Try out neovim completion plugins to see if they are better
if !platform#is_windows() if !platform#is_windows()
" YouCompleteMe with parameter completion if platform#is_linux()
Plug 'oblitum/YouCompleteMe', {'do': './install.py --clang-completer'} " YouCompleteMe with parameter completion
Plug 'oblitum/YouCompleteMe', {'do': './install.py --clang-completer'}
else
" YouCompleteMe upstream works best on macOS
Plug 'Valloric/YouCompleteMe', {'do': './install.py --clang-completer'}
endif
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>'] let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>'] let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:ycm_min_num_of_chars_for_completion = 1 let g:ycm_min_num_of_chars_for_completion = 1