How do I start with copilot disabled but enable with a command? #142
-
|
I have copilot.lua setup like below with lazy.nvim {
"zbirenbaum/copilot.lua",
event = "InsertEnter",
cmd = "Copilot",
build = ":Copilot auth",
opts = {
panel = {
enabled = false,
},
suggestion = {
enabled = false,
auto_trigger = true,
keymap = {
accept = "<Tab>",
},
},
},
},but when I |
Beta Was this translation helpful? Give feedback.
Answered by
MunifTanjim
Mar 20, 2023
Replies: 1 comment
-
{
"zbirenbaum/copilot.lua",
cmd = "Copilot",
event = "InsertEnter",
config = function()
require("copilot").setup({
suggestion = {
auto_trigger = true,
keymap = {
accept = "<Tab>",
},
})
vim.cmd("Copilot disable")
end,
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
comiluv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{ "zbirenbaum/copilot.lua", cmd = "Copilot", event = "InsertEnter", config = function() require("copilot").setup({ suggestion = { auto_trigger = true, keymap = { accept = "<Tab>", }, }) vim.cmd("Copilot disable") end, }