Commit 1f84a4f8 authored by Eliseo Martínez's avatar Eliseo Martínez

Introduce vim namespace: Contrib YCM: Fix style issues.

Python-mode signaled a couple of issues here:
- Multiple imports on same line.
- Line too long.
parent c0e70e1f
# .ycm_extra_conf.py for nvim source code.
import os, ycm_core
import os
import ycm_core
def DirectoryOfThisScript():
......@@ -24,9 +25,9 @@ def GetCompilationInfoForFile(filename):
return None
if IsHeaderFile(filename):
basename = os.path.splitext(filename)[0]
replacement_file = basename + '.c'
if os.path.exists(replacement_file):
compilation_info = database.GetCompilationInfoForFile(replacement_file)
c_file = basename + '.c'
if os.path.exists(c_file):
compilation_info = database.GetCompilationInfoForFile(c_file)
if compilation_info.compiler_flags_:
return compilation_info
return None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment