aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobtwinkles <srkoser+GitHub@gmail.com>2015-03-14 18:02:57 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-03-16 01:48:27 -0400
commit70393f2e3084e68056f22c2983163745d712ad5c (patch)
tree5a5e8fdece4865647601446a345c81ea20816c47
parent6cfc91c0b9dfc9523d544459afe5eec859e77faf (diff)
downloadrneovim-70393f2e3084e68056f22c2983163745d712ad5c.tar.gz
rneovim-70393f2e3084e68056f22c2983163745d712ad5c.tar.bz2
rneovim-70393f2e3084e68056f22c2983163745d712ad5c.zip
contrib: fix YCM completion for header files #2151
[ci skip]
-rw-r--r--contrib/YouCompleteMe/ycm_extra_conf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/YouCompleteMe/ycm_extra_conf.py b/contrib/YouCompleteMe/ycm_extra_conf.py
index 0066f96dc0..7c54677c8f 100644
--- a/contrib/YouCompleteMe/ycm_extra_conf.py
+++ b/contrib/YouCompleteMe/ycm_extra_conf.py
@@ -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_: