Open 0rtz opened 1 year ago
For anyone who has a similar issue (ctrl-space not working when trying to trigger completion) I would recommend checking that your keyboard/terminal app/whatever in the input chain to vim is actually sending the input (ctrl-space) you think it is - particularly if you're on MacOs!
I questioned if my terminal app (iterm2) wasn't sending ctrl-Space through properly, so on iterm2 I turned on raw key reporting mode:
that showed me that space bar wouldn't register any input when ctrl was pressed at the same time
I then stumbled across this article which says that apparently a default system shortcut was made a while ago in macos that uses the ctrl-space combination
https://apple.stackexchange.com/a/351058
deselecting this shortcut like so solved my problem:
FAQ
Announcement
Minimal reproducible full config
Description
cmp.complete() does not work with vsnip/friendly-snippets
Steps to reproduce
Press Ctrl-Space in any file for which friendly snippets exists.
Expected behavior
Completion menu is shown
Actual behavior
Completion menu is not shown
Additional context
If I do not provide
config
argument tocmp.complete()
, then a completion menu is shown, but only with buffer as a source. Completion for snippets are still missing on Ctrl-Space key press