From ea4b9f722553a6000fad30848614077646067d97 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Thu, 4 Apr 2024 14:10:05 +0200 Subject: nixvim: add cmp mappings --- users/sils/nixvim/config.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'users') 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 = { + "" = "cmp.mapping.complete()"; + "" = "cmp.mapping.scroll_docs(-4)"; + "" = "cmp.mapping.close()"; + "" = "cmp.mapping.scroll_docs(4)"; + "" = "cmp.mapping.confirm({ select = true })"; + "" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})"; + "" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})"; + }; preselect = "None"; sources = [ {name = "nvim_lsp";} -- cgit 1.4.1