Updated cmp keymappings

This commit is contained in:
Alejandro Angulo 2024-06-08 22:14:47 -07:00
parent b4eea8a8cd
commit da371b4483
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6

View file

@ -3,8 +3,10 @@
enable = true;
settings = {
mapping = {
"<C-p>" = "cmp.mapping.scroll_docs(-4)";
"<C-n>" = "cmp.mapping.scroll_docs(4)";
"<C-n>" = "cmp.mapping.select_next_item()";
"<C-p>" = "cmp.mapping.select_prev_item()";
"<C-u>" = "cmp.mapping.scroll_docs(-4)";
"<C-d>" = "cmp.mapping.scroll_docs(4)";
"<C-Space>" = "cmp.mapping.complete()";
"<C-e>" = "cmp.mapping.abort()";
# Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.