浏览代码

misc: fix a bug in the YCM configuration file.

undefined
Sam Hocevar 10 年前
父节点
当前提交
ab7d4e961f
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      .ycm_extra_conf.py

+ 5
- 1
.ycm_extra_conf.py 查看文件

@@ -1,3 +1,7 @@

# The following line might come handy in ~/.vimrc:
# let g:ycm_extra_conf_globlist = ['~/lol/*','!~/*']

import os
import ycm_core

@@ -21,7 +25,7 @@ flags = [
def FlagsForFile(filename, **kwargs):

extension = os.path.splitext(filename)[1]
if extension not in [ 'cpp', 'h' ]:
if extension not in [ '.c', '.cpp', '.h' ]:
return None

final_flags = flags


正在加载...
取消
保存