Skip to content

Instantly share code, notes, and snippets.

@lynndylanhurley
Last active March 9, 2017 05:44
Show Gist options
  • Save lynndylanhurley/5f94c57952362ffc1144 to your computer and use it in GitHub Desktop.
Save lynndylanhurley/5f94c57952362ffc1144 to your computer and use it in GitHub Desktop.
busted clang_complete init.vim
if has('vim_starting')
if &compatible
set nocompatible " Be iMproved
endif
endif
call plug#begin('~/.vim/bundle/')
Plug 'Shougo/vimproc', {'do' : 'make'}
Plug 'Shougo/deoplete.nvim'
Plug 'Rip-Rip/clang_complete', { 'do': 'nvim -c \"r! git ls-files autoload bin doc plugin\" -c \"$$,$$d _\" -c \"%MkVimball! $@ .\" -c \"q!\" && nvim &< -c \"so %\" -c \"q\"' }
filetype plugin indent on " required
call plug#end()
" deoplete
let g:deoplete#enable_at_startup = 1
let g:deoplete#auto_completion_start_length = 1
let g:deoplete#enable_smart_case = 1
set completeopt+=noinsert
set completeopt-=preview
" omnicompletes
au FileType c,cpp,objc,objcpp setl omnifunc=clang_complete#ClangComplete
let g:clang_complete_auto = 0
let g:clang_auto_select = 0
let g:clang_omnicppcomplete_compliance = 0
let g:clang_make_default_keymappings = 0
" clang_complete
let g:clang_library_path = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment