remove preselect for cmp

This commit is contained in:
Fabio Lenherr / DashieTM 2023-03-14 23:27:27 +01:00
parent 093ae62e7a
commit 477afdf6f4
3 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,5 @@
1258
1241
copyq
spaceship
a10dc6f271ba47d988a3b282250928e2
85480d5e-8597-44bc-87e7-50b35e38eb09
6ab064e3-5c06-478f-b9b4-e5b0b8ca5283

Binary file not shown.

View file

@ -39,7 +39,7 @@ return {
return {
preselect = cmp.PreselectMode.None,
completion = {
completeopt = "menu,menuone,noinsert",
-- completeopt = "menu,menuone,noinsert",
},
snippet = {
expand = function(args)
@ -52,6 +52,10 @@ return {
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.abort(),
["<CR>"] = cmp.mapping.confirm({ select = false }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
["<S-CR>"] = cmp.mapping.confirm({
behavior = cmp.ConfirmBehavior.Replace,
select = false,
}), -- Accept cur
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()