From f3f7082597eeffdc9a354380b5e4498d1e7d8925 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Thu, 20 Jul 2023 02:59:30 +0200 Subject: [PATCH 1/3] fix cmp abort keymap --- modules/completion/nvim-cmp/config.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/completion/nvim-cmp/config.nix b/modules/completion/nvim-cmp/config.nix index 72c9a1a..f9cb24c 100644 --- a/modules/completion/nvim-cmp/config.nix +++ b/modules/completion/nvim-cmp/config.nix @@ -106,7 +106,7 @@ in { end '') (mkSetLuaBinding mappings.close '' - require('cmp').mapping.abort + require('cmp').mapping.abort() '') (mkSetLuaBinding mappings.scrollDocsUp '' function() From 507d824731cdd9540d4519b5b5102ac27f491055 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Thu, 20 Jul 2023 14:02:37 +0200 Subject: [PATCH 2/3] 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) '') ]; From 8c59ce32cf46b1e0f37d932e5cc55a07f96bc5df Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Thu, 20 Jul 2023 13:36:01 +0200 Subject: [PATCH 3/3] update release notes --- docs/release-notes/rl-0.5.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/release-notes/rl-0.5.adoc b/docs/release-notes/rl-0.5.adoc index 403e9a5..0252074 100644 --- a/docs/release-notes/rl-0.5.adoc +++ b/docs/release-notes/rl-0.5.adoc @@ -8,4 +8,6 @@ https://github.com/horriblename[horriblename]: -* Add transparency support for tokyonight theme +* Add transparency support for tokyonight theme. + +* Fix bug where cmp's close and scrollDocs mappings wasn't working.