From 4f697e4aaa072b9d5ad5580278cdf8d3803714b8 Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Fri, 20 May 2022 13:19:35 +0100 Subject: [PATCH] tab for completion --- defaults/keymaps-common.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/defaults/keymaps-common.toml b/defaults/keymaps-common.toml index ff4a53ae..483acc7b 100644 --- a/defaults/keymaps-common.toml +++ b/defaults/keymaps-common.toml @@ -115,6 +115,11 @@ key = "ctrl+m" command = "list.select" when = "list_focus" +[[keymaps]] +key = "tab" +command = "list.select" +when = "completion_focus" + [[keymaps]] key = "enter" command = "list.select" @@ -220,7 +225,7 @@ mode = "i" [[keymaps]] key = "tab" command = "insert_tab" -when = "!in_snippet" +when = "!in_snippet && !completion_focus" mode = "i" [[keymaps]]