From 507d824731cdd9540d4519b5b5102ac27f491055 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Thu, 20 Jul 2023 14:02:37 +0200 Subject: [PATCH] fix cmp scroll docs keybinds --- modules/completion/nvim-cmp/config.nix | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/modules/completion/nvim-cmp/config.nix b/modules/completion/nvim-cmp/config.nix index f9cb24c..e49fdb9 100644 --- a/modules/completion/nvim-cmp/config.nix +++ b/modules/completion/nvim-cmp/config.nix @@ -109,14 +109,10 @@ in { require('cmp').mapping.abort() '') (mkSetLuaBinding mappings.scrollDocsUp '' - function() - require('cmp').mapping.scroll_docs(-4) - end + require('cmp').mapping.scroll_docs(-4) '') (mkSetLuaBinding mappings.scrollDocsDown '' - function() - require('cmp').mapping.scroll_docs(4) - end + require('cmp').mapping.scroll_docs(4) '') ]; @@ -125,17 +121,13 @@ in { require('cmp').complete '') (mkSetLuaBinding mappings.close '' - require('cmp').mapping.close + require('cmp').mapping.close() '') (mkSetLuaBinding mappings.scrollDocsUp '' - function() - require('cmp').mapping.scroll_docs(-4) - end + require('cmp').mapping.scroll_docs(-4) '') (mkSetLuaBinding mappings.scrollDocsDown '' - function() - require('cmp').mapping.scroll_docs(4) - end + require('cmp').mapping.scroll_docs(4) '') ];