Set .ycm_extra_config to work with other editors

Reviewers: mislav.bradac

Reviewed By: mislav.bradac

Differential Revision: https://phabricator.memgraph.io/D645
This commit is contained in:
Goran Zuzic 2017-08-08 15:50:17 +02:00
parent b8957c999d
commit 16170d22da

View File

@ -49,6 +49,9 @@ HEADER_EXTENSIONS = [
'.hh'
]
# set the working directory of YCMD to be this file
os.chdir(os.path.dirname(os.path.realpath(__file__)))
def IsHeaderFile(filename):
extension = os.path.splitext(filename)[1]
return extension in HEADER_EXTENSIONS