change: nvim: cmp settings (Replace -> Insert, selection requirement)

This commit is contained in:
qwjyh 2024-03-18 10:33:28 +09:00
parent e86b6655d8
commit 700cecd2ae

View file

@ -673,8 +673,8 @@ cmp.setup {
['<C-d>'] = cmp.mapping.scroll_docs(4), -- Down ['<C-d>'] = cmp.mapping.scroll_docs(4), -- Down
['<C-Space>'] = cmp.mapping.complete(), ['<C-Space>'] = cmp.mapping.complete(),
['<CR>'] = cmp.mapping.confirm { ['<CR>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace, behavior = cmp.ConfirmBehavior.Insert,
select = true, select = false,
}, },
['<Tab>'] = cmp.mapping(function(fallback) ['<Tab>'] = cmp.mapping(function(fallback)
if cmp.visible() then if cmp.visible() then