From 64c8bc6b40e43b0424bda5fbfae8c1328db933d0 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 4 Oct 2018 10:18:01 +0100 Subject: [PATCH] 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. --- vimrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index ef13395..ae334ba 100644 --- a/vimrc +++ b/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 = ['', ''] let g:ycm_key_list_previous_completion = ['', ''] let g:ycm_min_num_of_chars_for_completion = 1