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:
9
vimrc
9
vimrc
@@ -36,8 +36,13 @@ Plug 'mkitt/tabline.vim'
|
||||
" YouCompleteMe
|
||||
" TODO: Try out neovim completion plugins to see if they are better
|
||||
if !platform#is_windows()
|
||||
" YouCompleteMe with parameter completion
|
||||
Plug 'oblitum/YouCompleteMe', {'do': './install.py --clang-completer'}
|
||||
if platform#is_linux()
|
||||
" 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_previous_completion = ['<C-p>', '<Up>']
|
||||
let g:ycm_min_num_of_chars_for_completion = 1
|
||||
|
||||
Reference in New Issue
Block a user