mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-26 18:59:00 +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,
|
behavior = cmp.ConfirmBehavior.Replace,
|
||||||
select = true,
|
select = true,
|
||||||
}), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
}), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
||||||
|
["<C-CR>"] = function(fallback)
|
||||||
|
cmp.abort()
|
||||||
|
fallback()
|
||||||
|
end,
|
||||||
}),
|
}),
|
||||||
sources = {
|
sources = {
|
||||||
{ name = "nvim_lsp", group_index = 1 },
|
{ name = "nvim_lsp", group_index = 1 },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue