From 40c626822f0f9178f730bfe3a7a95ffb89fcef36 Mon Sep 17 00:00:00 2001 From: std-enigma Date: Sat, 20 Sep 2025 17:40:05 +0330 Subject: [PATCH 1/2] fix(copilot-lua-cmp): keymap conflict fixes #1564 --- lua/astrocommunity/completion/copilot-lua-cmp/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/astrocommunity/completion/copilot-lua-cmp/init.lua b/lua/astrocommunity/completion/copilot-lua-cmp/init.lua index ccaf414cb..29872591e 100644 --- a/lua/astrocommunity/completion/copilot-lua-cmp/init.lua +++ b/lua/astrocommunity/completion/copilot-lua-cmp/init.lua @@ -47,7 +47,7 @@ return { opts.mapping[""] = cmp.mapping(copilot_action "accept_word") opts.mapping[""] = cmp.mapping(copilot_action "accept_line") opts.mapping[""] = cmp.mapping(copilot_action "accept_line") - opts.mapping[""] = cmp.mapping(copilot_action "dismiss") + opts.mapping[""] = cmp.mapping(copilot_action "dismiss") end, }, { @@ -71,7 +71,7 @@ return { opts.keymap[""] = { copilot_action "accept_word" } opts.keymap[""] = { copilot_action "accept_line" } opts.keymap[""] = { copilot_action "accept_line", "select_next", "fallback" } - opts.keymap[""] = { copilot_action "dismiss" } + opts.keymap[""] = { copilot_action "dismiss" } end, }, }, From 7bdfb90063c9cb3b820a456ce6d11a31048ba9ec Mon Sep 17 00:00:00 2001 From: std-enigma Date: Tue, 23 Sep 2025 12:49:42 +0330 Subject: [PATCH 2/2] chore(copilot-lua-cmp): Use lower-cased shortcuts for the dismiss keybinding --- lua/astrocommunity/completion/copilot-lua-cmp/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/astrocommunity/completion/copilot-lua-cmp/init.lua b/lua/astrocommunity/completion/copilot-lua-cmp/init.lua index 29872591e..6da4faeb5 100644 --- a/lua/astrocommunity/completion/copilot-lua-cmp/init.lua +++ b/lua/astrocommunity/completion/copilot-lua-cmp/init.lua @@ -47,7 +47,7 @@ return { opts.mapping[""] = cmp.mapping(copilot_action "accept_word") opts.mapping[""] = cmp.mapping(copilot_action "accept_line") opts.mapping[""] = cmp.mapping(copilot_action "accept_line") - opts.mapping[""] = cmp.mapping(copilot_action "dismiss") + opts.mapping[""] = cmp.mapping(copilot_action "dismiss") end, }, { @@ -71,7 +71,7 @@ return { opts.keymap[""] = { copilot_action "accept_word" } opts.keymap[""] = { copilot_action "accept_line" } opts.keymap[""] = { copilot_action "accept_line", "select_next", "fallback" } - opts.keymap[""] = { copilot_action "dismiss" } + opts.keymap[""] = { copilot_action "dismiss" } end, }, },