From ab7d4e961f9ac7bbfb18f63c70b206ab9707098a Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 29 Dec 2014 23:52:07 +0000 Subject: [PATCH] misc: fix a bug in the YCM configuration file. --- .ycm_extra_conf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py index bd504c41..0952eeba 100644 --- a/.ycm_extra_conf.py +++ b/.ycm_extra_conf.py @@ -1,3 +1,7 @@ + +# The following line might come handy in ~/.vimrc: +# let g:ycm_extra_conf_globlist = ['~/lol/*','!~/*'] + import os import ycm_core @@ -21,7 +25,7 @@ flags = [ def FlagsForFile(filename, **kwargs): extension = os.path.splitext(filename)[1] - if extension not in [ 'cpp', 'h' ]: + if extension not in [ '.c', '.cpp', '.h' ]: return None final_flags = flags