add completion list keymapping to close the list

This commit is contained in:
Gered 2024-09-03 18:56:18 -04:00
parent f31f60061d
commit ce0b408976

View file

@ -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 },