How can I get cmp.complete()
in nvim-cmp
to start from the last entry. This is default behavior in vim. I use select_prev_item( )
twice for now to go to last entry. Thats hacky and slow. I tried this too:
["<C-p>"] = function()
if cmp.visible() then
cmp.select_prev_item({ behavior = cmp.SelectBehavior.Insert })
else
cmp.complete({
config = {
reason = cmp.ContextReason.Auto,
view = { entries = { selection_order = "bottom_up" }
}
}
})
end
end,