mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
fix(copilot): remove load on BufReadPost instead of InsertEnter
This commit is contained in:
parent
4a81a370d7
commit
8f4e9b8c1e
1 changed files with 2 additions and 1 deletions
|
@ -5,11 +5,12 @@ return {
|
||||||
"zbirenbaum/copilot.lua",
|
"zbirenbaum/copilot.lua",
|
||||||
cmd = "Copilot",
|
cmd = "Copilot",
|
||||||
build = ":Copilot auth",
|
build = ":Copilot auth",
|
||||||
event = "InsertEnter",
|
event = "BufReadPost",
|
||||||
opts = {
|
opts = {
|
||||||
suggestion = {
|
suggestion = {
|
||||||
enabled = not vim.g.ai_cmp,
|
enabled = not vim.g.ai_cmp,
|
||||||
auto_trigger = true,
|
auto_trigger = true,
|
||||||
|
hide_during_completion = vim.g.ai_cmp,
|
||||||
keymap = {
|
keymap = {
|
||||||
accept = false, -- handled by nvim-cmp / blink.cmp
|
accept = false, -- handled by nvim-cmp / blink.cmp
|
||||||
next = "<M-]>",
|
next = "<M-]>",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue