You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Toggle auto-trigger is broken - doesn't disable preview #32
action.toggle_auto_trigger is broken, it assigns a closure instead of a boolean to the vim.g.model_cmp_virtualtext_auto_trigger variable which is indirectly always set to true. Hence the toggle never turns to false and clear_preview is never called when toggling the preview.
This issue is bit different, even if we assign the variable with true or false it does not change anything.
Since action.enable and action.disable creates or deletes the model_cmp_virtualtext augroup.
Ways to solve this:
Create a separate local function that takes in a boolean and based on that it creates or deletes the augroup. This way we can pass the vim.g.model_cmp_virtualtext_auto_trigger variable to activate this feature.
Activity
PyDevC commentedon May 26, 2026
This issue is bit different, even if we assign the variable with true or false it does not change anything.
Since action.enable and action.disable creates or deletes the
model_cmp_virtualtextaugroup.Ways to solve this: