Closed alexzanderr closed 3 years ago
a little demo to see better whats happening
the completion menu appears automatically for me, so this may be a configuration problem or plugin interaction. maybe try to get a minimal reproducible example vimrc
yea... i have 100 plugins. do you have any idea what could cause it? just for reference to look into.
Use binary system to figure it out. Disable 50% of your plugins and see if issue persists. Then keep narrowing it down the same way until you find the culprit.
I don't think anyone else reported that issue yet so it might be some more 'exotic' plugin interacting here. Or your configuration.
sure. im gonna check
Hey @alexzanderr I was having the same issue and just found out the problem, it's because of this option on the setup:
completion = {
autocomplete = true,
}
Now it doesn't work if you just pass true, comment that out the leave the default value and you're gonna see that the autocomplete works (at least it did for me).
omg @rafamadriz, you are my hero.
@hrsh7th, please fix this option with autocomplete = true, commenting it will fix the issue.
@alexzanderr
The default option for completion.autocomplete
is TextChanged
and it is not expected to take Boolean value, so you can safely remove that option.
See this line: https://github.com/hrsh7th/nvim-cmp/blob/main/lua/cmp/core.lua#L171
The documentation sounds a little bit misleading actually; though I think having a sanity check might be good to have to make it even more fool-proof :)
so you can safely remove that option.
i saw that after removing it.
okey. thanks for info.
completion menu its not triggered by default anymore. only if i press
control + space
(or trigger key), meaning that only manually will be triggered.my cmp config:
its not much. just some settings for
dont get me wrong. the plugins is working. just not triggered automatically when i type in insert mode.
extra: i dont think there is a plugin that is interfering with
cmp
, i dont think its possible for this to happen.