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