From 3c7f2798dc51bbc44eebcc8c3784f423d543838b Mon Sep 17 00:00:00 2001 From: Gary Murray Date: Wed, 1 Jan 2025 02:48:39 -0700 Subject: [PATCH] fix(copilot-chat): ignore LSP keymaps in chat window The copilot-chat filetype is added to the global list of filetypes that should ignore LSP keymaps, preventing keymap conflicts in the chat interface. --- lua/lazyvim/plugins/extras/ai/copilot-chat.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/lazyvim/plugins/extras/ai/copilot-chat.lua b/lua/lazyvim/plugins/extras/ai/copilot-chat.lua index e71f4db1..f1dcf0c3 100644 --- a/lua/lazyvim/plugins/extras/ai/copilot-chat.lua +++ b/lua/lazyvim/plugins/extras/ai/copilot-chat.lua @@ -75,6 +75,9 @@ return { end, }) + -- Add copilot-chat to the list of filetypes that should ignore LSP keymaps + vim.g.keymaps_lsp_ignore_ft = vim.list_extend(vim.g.keymaps_lsp_ignore_ft or {}, { "copilot-chat" }) + chat.setup(opts) end, },