mirror of
https://github.com/boxpositron/absolute-vim.git
synced 2026-02-28 11:40:36 +00:00
feat(nvim-cmp.lua): change mapping confirm behavior to select current suggestion by default
This commit is contained in:
@@ -16,7 +16,7 @@ cmp.setup({
|
|||||||
},
|
},
|
||||||
mapping = cmp.mapping.preset.insert({
|
mapping = cmp.mapping.preset.insert({
|
||||||
["<C-Space>"] = cmp.mapping.complete(), -- show completion suggestions
|
["<C-Space>"] = cmp.mapping.complete(), -- show completion suggestions
|
||||||
["<CR>"] = cmp.mapping.confirm({ select = false }), -- accept current selection
|
["<CR>"] = cmp.mapping.confirm({ select = true }), -- accept current selection
|
||||||
}),
|
}),
|
||||||
-- sources for autocompletion
|
-- sources for autocompletion
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
|
|||||||
Reference in New Issue
Block a user