-
Hi, is it possible to have behaviour like the ctrl+n completion from nvim? I tried setting Kind regards, Jens |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use ["<C-n>"] = cmp.mapping({
i = function()
if cmp.visible() then -- pop-up menu is visible
cmp.select_next_item()
else
cmp.complete() -- open the pop-up menu
end
end,
}) |
Beta Was this translation helpful? Give feedback.
You can use
cmp.visible()