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-Space>'] = cmp.mapping.complete(),
['<CR>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select = true,
behavior = cmp.ConfirmBehavior.Insert,
select = false,
},
['<Tab>'] = cmp.mapping(function(fallback)
if cmp.visible() then