From d5922e42e438f388a00866f442b6a58220107bf2 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Mon, 30 Sep 2024 18:27:50 +0300 Subject: [PATCH] feat(cmp): toggle --- config/plugins/cmp.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/plugins/cmp.nix b/config/plugins/cmp.nix index 6542d3e..47ff1d0 100644 --- a/config/plugins/cmp.nix +++ b/config/plugins/cmp.nix @@ -26,6 +26,15 @@ { "i", "c" } ) ''; + "" = '' + cmp.mapping(function() + if cmp.visible() then + cmp.close() + else + cmp.complete() + end + end) + ''; }; }; }; -- 2.44.1