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:
parent
b8957c999d
commit
16170d22da
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user