contrib: fix YCM completion for header files #2151

[ci skip]
This commit is contained in:
bobtwinkles
2015-03-14 18:02:57 -04:00
committed by Justin M. Keyes
parent 6cfc91c0b9
commit 70393f2e30

View File

@ -29,7 +29,7 @@ def GetCompilationInfoForFile(filename):
c_file = basename + '.c'
# for pure headers (no c file), default to main.c
if not os.path.exists(c_file):
c_file = os.path.join(DirectoryOfThisScript(), 'main.c')
c_file = os.path.join(DirectoryOfThisScript(), 'nvim', 'main.c')
if os.path.exists(c_file):
compilation_info = database.GetCompilationInfoForFile(c_file)
if compilation_info.compiler_flags_: