add completion list keymapping to close the list
This commit is contained in:
parent
f31f60061d
commit
ce0b408976
|
@ -69,6 +69,8 @@ return {
|
|||
-- This will expand snippets if the LSP sent a snippet.
|
||||
['<C-y>'] = cmp.mapping.confirm { select = true },
|
||||
|
||||
['<Esc>'] = cmp.mapping.close(),
|
||||
|
||||
-- If you prefer more traditional completion keymaps,
|
||||
-- you can uncomment the following lines
|
||||
--['<CR>'] = cmp.mapping.confirm { select = true },
|
||||
|
|
Loading…
Reference in a new issue