update keymapping

This commit is contained in:
♥ Minnie ♥ 2024-12-22 20:53:35 +08:00
parent 2f48251e91
commit da9d800647
Signed by: jasmine
GPG key ID: 8563E358D4E8040E

View file

@ -18,15 +18,10 @@
'';
# cmp mappings declaration
mapping = {
"<C-Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
"<C-e>" = "cmp.mapping.select_next_item()";
"<C-n>" = "cmp.mapping.select_prev_item()";
"<C-down>" = "cmp.mapping.select_next_item()";
"<C-up>" = "cmp.mapping.select_prev_item()";
"<C-esc>" = "cmp.mapping.abort()";
"<C-b>" = "cmp.mapping.scroll_docs(-4)";
"<C-f>" = "cmp.mapping.scroll_docs(4)";
"<C-Space>" = "cmp.mapping.complete()";
"<C-CR>" = "cmp.mapping.confirm({ select = true })";
"<S-CR>" = "cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = true })";
"<C-CR>" = "cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Replace, select = true })";
};
};
# Scans the sources array and enable the corresponding plugins if they are known to nixvim.