Skip to content

Passing variables from .ycm_extra_conf.py to vim #4297

@ZaharChernenko

Description

@ZaharChernenko

I know i can pass variables from vim to python code like this:

def Settings( **kwargs ):
  client_data = kwargs[ 'client_data' ]
  return {
    'interpreter_path': client_data[ 'g:ycm_python_interpreter_path' ],
    'sys_path': client_data[ 'g:ycm_python_sys_path' ]
  }

but is it possible to do it the other way around?
Or it is possible to get the path to variables from another way, especially completer python interpreter path like on the screen from YcmDebugInfo
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions