From c991e20c9927d176c42bb249f9b3ba7eca920b05 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 7 Dec 2024 18:25:45 +0000 Subject: [PATCH] fix(completion/company): fix keybind conflict with copilot-mode --- modules/completion/siren-company.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/completion/siren-company.el b/modules/completion/siren-company.el index 655a37c..f6a78d1 100644 --- a/modules/completion/siren-company.el +++ b/modules/completion/siren-company.el @@ -35,7 +35,13 @@ (setq-local company-backends '(company-capf))) :config - (global-company-mode 1)) + (global-company-mode 1) + + ;; Disable tab and backtab keybindings in company-active-map, as they are used + ;; for Copilot completion, and we have a global TAB keybinding for triggering + ;; and accepting company-mode completions. + (unbind-key "TAB" company-active-map) + (unbind-key "" company-active-map)) (use-package company-box :if window-system