Clarifying docs for FlagsForFile client_data

This commit is contained in:
Strahinja Val Markovic 2013-10-27 10:19:22 -07:00
parent ed47a8c2a1
commit b04684b8ee

View File

@ -872,6 +872,15 @@ FlagsForFile(filename, client_data = {'v:version': 704})
So the `client_data` parameter is a dictionary mapping Vim expression strings to
their values at the time of the request.
The correct way to define parameters for your `FlagsForFile` function is like
this:
```python
def FlagsForFile(filename, **kwargs):
```
You can then get to `client_data` like this: `kwargs['client_data']`.
Default: `[]`
let g:ycm_extra_conf_vim_data = []