From 1dda05d9af24835685a107d6aac5f4ff42433342 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 23 Nov 2023 20:08:51 +0000 Subject: [PATCH] remap tip --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 3833388..80286af 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,14 @@ vim.keymap.set('i', '', function() end return '' end, {expr = true}) + +-- For using enter as completion, may conflict with somw autopair plugin +vim.keymap.set("i", "", function() + if vim.fn.pumvisible() == 1 then + return "" + end + return "" +end, { expr = true, noremap = true }) ``` ## License MIT