Przemysław Czechowski
Przemysław Czechowski

Reputation: 776

Vim plugin clang_complete doesn't see *.cc files

I've installed clang_complete plugin using Vundle. Seems to work for *.cpp files (:set omnifunc? gives ClangComplete and autocompletion mostly works as it should), but I'm rather using *.cc and those the plugin seems not to recognise. (:set omnifunc? gives nothing)

I've tried changing ~/.vim/bundle/clang_complete/plugin/clang_complete.vimand adding *.cc everywhere where file extensions are listed and then do :PluginUpdate, but that didn't help.

Thanks in advance!

Upvotes: 2

Views: 185

Answers (1)

Przemysław Czechowski
Przemysław Czechowski

Reputation: 776

Found a workaroud. I've added:

  autocmd BufEnter *.cc set omnifunc=ClangComplete
  autocmd BufEnter *.cc set completefunc=ClangComplete

to my .vimrc

Upvotes: 2

Related Questions