mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
feat(cmp): ctrl+CR will abort cmp and enter a new line
This commit is contained in:
parent
efbe4e5793
commit
d894556c37
1 changed files with 4 additions and 0 deletions
|
@ -66,6 +66,10 @@ return {
|
|||
behavior = cmp.ConfirmBehavior.Replace,
|
||||
select = true,
|
||||
}), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
||||
["<C-CR>"] = function(fallback)
|
||||
cmp.abort()
|
||||
fallback()
|
||||
end,
|
||||
}),
|
||||
sources = {
|
||||
{ name = "nvim_lsp", group_index = 1 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue