remove preselect for cmp
This commit is contained in:
parent
093ae62e7a
commit
477afdf6f4
3 changed files with 7 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
1258
|
1241
|
||||||
copyq
|
copyq
|
||||||
spaceship
|
spaceship
|
||||||
a10dc6f271ba47d988a3b282250928e2
|
a10dc6f271ba47d988a3b282250928e2
|
||||||
85480d5e-8597-44bc-87e7-50b35e38eb09
|
6ab064e3-5c06-478f-b9b4-e5b0b8ca5283
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -39,7 +39,7 @@ return {
|
||||||
return {
|
return {
|
||||||
preselect = cmp.PreselectMode.None,
|
preselect = cmp.PreselectMode.None,
|
||||||
completion = {
|
completion = {
|
||||||
completeopt = "menu,menuone,noinsert",
|
-- completeopt = "menu,menuone,noinsert",
|
||||||
},
|
},
|
||||||
snippet = {
|
snippet = {
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
|
|
@ -52,6 +52,10 @@ return {
|
||||||
["<C-Space>"] = cmp.mapping.complete(),
|
["<C-Space>"] = cmp.mapping.complete(),
|
||||||
["<C-e>"] = cmp.mapping.abort(),
|
["<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.
|
["<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)
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if cmp.visible() then
|
||||||
cmp.select_next_item()
|
cmp.select_next_item()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue