Add keybindings for cmp and editor config

This commit is contained in:
Greg Hellings
2024-10-04 11:12:06 -05:00
parent 81f534dd46
commit 709d1cf2a4
2 changed files with 129 additions and 0 deletions
+7
View File
@@ -79,6 +79,13 @@ in
{ name = "buffer"; group_index = 2; }
{ name = "path"; gruop_index = 3; }
];
mapping = {
"<C-Space>" = "cmp.mapping.complete()";
"<CR>" = "cmp.mapping.confirm({ select = true })";
"<C-f>" = "cmp.mapping.scroll_docs(4)";
"<C-b>" = "cmp.mapping.scroll_docs(-4)";
"<C-c>" = "cmp.mapping.abort()";
};
};
};
direnv.enable = true;