mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Introduce vim namespace: Contrib YCM: Fix style issues.
Python-mode signaled a couple of issues here: - Multiple imports on same line. - Line too long.
This commit is contained in:
parent
c0e70e1fa5
commit
1f84a4f811
@ -1,5 +1,6 @@
|
|||||||
# .ycm_extra_conf.py for nvim source code.
|
# .ycm_extra_conf.py for nvim source code.
|
||||||
import os, ycm_core
|
import os
|
||||||
|
import ycm_core
|
||||||
|
|
||||||
|
|
||||||
def DirectoryOfThisScript():
|
def DirectoryOfThisScript():
|
||||||
@ -24,9 +25,9 @@ def GetCompilationInfoForFile(filename):
|
|||||||
return None
|
return None
|
||||||
if IsHeaderFile(filename):
|
if IsHeaderFile(filename):
|
||||||
basename = os.path.splitext(filename)[0]
|
basename = os.path.splitext(filename)[0]
|
||||||
replacement_file = basename + '.c'
|
c_file = basename + '.c'
|
||||||
if os.path.exists(replacement_file):
|
if os.path.exists(c_file):
|
||||||
compilation_info = database.GetCompilationInfoForFile(replacement_file)
|
compilation_info = database.GetCompilationInfoForFile(c_file)
|
||||||
if compilation_info.compiler_flags_:
|
if compilation_info.compiler_flags_:
|
||||||
return compilation_info
|
return compilation_info
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user