nixvim(cmp): configure keymaps the way i like them

This commit is contained in:
Khaïs COLIN 2024-07-27 16:20:58 +02:00
parent 8b9a12e428
commit ed932da1f6
2 changed files with 7 additions and 1 deletions

2
flake.lock generated
View file

@ -315,7 +315,7 @@
},
"locked": {
"lastModified": 1,
"narHash": "sha256-1L5aXNQndyNRWsIE5GzvmHNKT7UWX4BRSPitnvuUdp0=",
"narHash": "sha256-qIze//rcbqR1WxlONQNikWyyizNP1XzVATZOP2lJjIc=",
"path": "./nixvim",
"type": "path"
},

View file

@ -8,6 +8,12 @@
{ name = "path"; }
{ name = "buffer"; }
];
mapping = {
"<CR>" = "cmp.mapping.confirm({ select = true })";
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item({'i', 's'}))";
"<S-Tab>" = "cmp.mapping(cmp.mapping.select_prev_item({'i', 's'}))";
};
};
};
}