summary refs log tree commit diff stats
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/sils/nixvim/config.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/users/sils/nixvim/config.nix b/users/sils/nixvim/config.nix
index 1cf67c5..c22ca5b 100644
--- a/users/sils/nixvim/config.nix
+++ b/users/sils/nixvim/config.nix
@@ -58,6 +58,15 @@ pkgs: {
     cmp = {
       enable = true;
       settings = {
+        mappings = {
+          "<C-Space>" = "cmp.mapping.complete()";
+          "<C-d>" = "cmp.mapping.scroll_docs(-4)";
+          "<C-e>" = "cmp.mapping.close()";
+          "<C-f>" = "cmp.mapping.scroll_docs(4)";
+          "<CR>" = "cmp.mapping.confirm({ select = true })";
+          "<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
+          "<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
+        };
         preselect = "None";
         sources = [
           {name = "nvim_lsp";}