feat(completion): Add binding to force completion

Add a binding for `<C-f>` to force completion.
This allows for completions to be started at the start of a line or where
there isn't any context to complete from

This is useful when you want to browse the possible completions without
knowing what you're looking for
This commit is contained in:
Robert Morrison 2025-12-21 20:34:45 +00:00
parent 231a0613c6
commit 0a076ae9f8

View File

@ -92,6 +92,9 @@ return {
select = false, select = false,
}), }),
}), }),
["<C-F>"] = cmp.mapping(function(fallback)
cmp.complete()
end),
}, },
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = "lazydev" }, { name = "lazydev" },