let g:ycm_global_ycm_extra_conf can use "~"

This commit is contained in:
bear 2013-02-18 13:58:22 +08:00
parent 3108fdcbd0
commit 66289d7522

View File

@ -29,8 +29,9 @@ YCM_EXTRA_CONF_FILENAME = '.ycm_extra_conf.py'
NO_EXTRA_CONF_FILENAME_MESSAGE = ('No {0} file detected, so no compile flags '
'are available. Thus no semantic support for C/C++/ObjC/ObjC++.').format(
YCM_EXTRA_CONF_FILENAME )
GLOBAL_YCM_EXTRA_CONF_FILE = vimsupport.GetVariableValue(
"g:ycm_global_ycm_extra_conf" )
GLOBAL_YCM_EXTRA_CONF_FILE = os.path.expanduser(
vimsupport.GetVariableValue( "g:ycm_global_ycm_extra_conf" )
)
class Flags( object ):
def __init__( self ):