CopilotChat not respecting the filetypes configuration of Copilot extension #904
Answered
by
deathbeam
antonpetrovmain
asked this question in
Q&A
-
I have currently disabled Copilot by default for all filetypes: return {
{
"zbirenbaum/copilot.lua",
cmd = "Copilot",
keys = {
{ "<leader>,a", "<cmd>Copilot! attach<CR>", desc = "Attach Copilot" },
{ "<leader>,d", "<cmd>Copilot! detach<CR>", desc = "Detach Copilot" },
{ "<leader>,s", "<cmd>Copilot! status<CR>", desc = "Copilot Status" },
},
opts = {
panel = {
enabled = false,
auto_refresh = false,
keymap = {
jump_prev = "[[",
jump_next = "]]",
accept = "<CR>",
refresh = "gr",
open = "<M-CR>"
},
layout = {
position = "bottom", -- | top | left | right | horizontal | vertical
ratio = 0.4
},
},
suggestion = {
enabled = true,
auto_trigger = true,
hide_during_completion = true,
debounce = 75,
keymap = {
accept = "<S-Tab>",
accept_line = "<Tab>",
accept_word = "<M-w>",
next = "<M-]>",
prev = "<M-[>",
dismiss = "<C-]>",
},
},
filetypes = {
["*"] = false,
},
copilot_node_command = 'node', -- Node.js version must be > 18.x
server_opts_overrides = {},
}
},
} Whenever I install the CopilotChat extention, suddenly copilot starts suggestions everywhere, even if my Copilot extension is disabled. Is there an option to configure CopilotChat to not provide suggestions by default everywhere? Thank you, |
Beta Was this translation helpful? Give feedback.
Answered by
deathbeam
Mar 5, 2025
Replies: 1 comment 1 reply
-
Are you sure its not caused by adding |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
deathbeam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you sure its not caused by adding
copilot.vim
as dependency together with CopilotChat? Because CopilotChat do not provides any suggestions all.