How to configure Copilot to automatically enable when nvim starts? #261
-
Sorry if I've missed this in the documentation, but I was wondering how I can configure this plugin to automatically enable Copilot when I run Here's my current configuration... {
"zbirenbaum/copilot.lua",
cmd = "Copilot",
build = ':Copilot auth',
event = "InsertEnter",
config = function()
require("copilot").setup({
suggestion = {
auto_trigger = true,
debounce = 100,
keymap = {
accept = "<C-l>",
},
}
})
end
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You've set So copilot will either load when:
If you don't wanna lazy load copilot, remove those 2 options, then copilot will start as soon as neovim is open. Also copilot server will only run when you've actually opened a file. Otherwise, it'll just wait for you to open a file. |
Beta Was this translation helpful? Give feedback.
You've set
cmd = "Copilot",
andevent = "InsertEnter"
.So copilot will either load when:
:Copilot
commandIf you don't wanna lazy load copilot, remove those 2 options, then copilot will start as soon as neovim is open.
Also copilot server will only run when you've actually opened a file. Otherwise, it'll just wait for you to open a file.