From 68c1b1ba32c4936dae06789949c71821fbdb3059 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Sun, 10 Jul 2022 21:11:42 +0100 Subject: [PATCH] chore(vim): add mapping to exit completion This is when inside a snippet the tab get taken over by the completion menu, you can then not jump to the next mark in the snippet. Now you can use to close the completion menu and tab will then jump to the next mark in the snippet. --- site-modules/core/files/vim/plugin/completion.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/site-modules/core/files/vim/plugin/completion.lua b/site-modules/core/files/vim/plugin/completion.lua index 0e47fda..4541784 100644 --- a/site-modules/core/files/vim/plugin/completion.lua +++ b/site-modules/core/files/vim/plugin/completion.lua @@ -10,6 +10,7 @@ cmp.setup({ mapping = cmp.mapping.preset.insert({ [''] = cmp.get_config().mapping[''], [''] = cmp.get_config().mapping[''], + [''] = cmp.mapping.abort(), [''] = cmp.mapping(function(_fallback) if cmp.visible() then cmp.confirm({ select = true })