rox

Results 173 comments of rox

Cannot reproduce with a [4000 lines python file](https://github.com/ncm2/ncm2-pyclang/blob/master/pythonx/3rd/clang/cindex.py)

I'm not interested in tabnine. I don't have plan for this feature. Maybe it's your time to shine.

If you feed an array of dict as matches, (`:help complete-items`), and fill the `menu` field, you will be able to show the text you want.`

Please read `:help cm#complete()` and `:help NCM-source-exameples`

You can output a json array, then you can read the whole output in python and json-decode it. It should be something like ``` [{ "word": "Print", "abbr": "foobar"}, ...]...

There's explanation on how patterns are used in this section `:help NCM-source-exameples`

If you add space into `word_pattern`, `r'[\w\s]+'`, you will get `' je comp'` as `ctx['base']` If you want completion to be triggered after `.` character, simply add `r'\.'` into `cm_refresh_paterns`

> [INFO @ cm_core.py:cm_complete:177] 26499 - [gtr] outdated matches, old typed `[salut. je ]` cur typed[salut. je] It happens when you delete characters. The completion is triggered at `[salut. je...

> ` cm_refresh_patterns=[r'(\.|^)?.*?$\.'])` This is weird If you want completion to be triggered after `.`, use `cm_refresh_patterns=[r'\.']`

You can find how word_pattern and cm_refresh_patterns are used here: https://github.com/roxma/nvim-completion-manager/blob/cf18fb775ef265c9319d2d4fd8815d84ce345040/pythonx/cm_core.py#L417