1247972 20 0 11.8G 2368M 82064 R 100.0 1.8 3:21.59 node /.local/share/nvim/lazy/copilot.lua/copilot/js/language-server.js --stdio
my copilot instance is going bananas when running my application in a terminal. I change my terminal names so they match my process I am running something like:
pcall(vim.api.nvim_buf_set_name, 0, name)
{
"zbirenbaum/copilot.lua",
cmd = "Copilot",
event = "InsertEnter",
config = function()
require("copilot").setup({
should_attach = function(_, bufname)
if string.match(bufname, "test.term") then
return false
end
return true
end,
suggestion = {
enabled = true,
auto_trigger = true,
keymap = {
accept = "<C-g>",
next = "<C-n>",
prev = "<C-p>",
dismiss = "<C-\\>",
},
},
panel = { enabled = false },
filetypes = {
terminal = false,
help = false,
json = false,
gitcommit = true,
markdown = true,
}
})
end,
}
I have the terminal filetype set to false maybe there is a way to set it by buffer type?
1247972 20 0 11.8G 2368M 82064 R 100.0 1.8 3:21.59 node /.local/share/nvim/lazy/copilot.lua/copilot/js/language-server.js --stdio
my copilot instance is going bananas when running my application in a terminal. I change my terminal names so they match my process I am running something like:
Here is my config:
I have the terminal filetype set to false maybe there is a way to set it by buffer type?