enable copilot

This commit is contained in:
2025-07-21 02:22:30 +02:00
parent 40f9a4feb5
commit ae5199cf1f
2 changed files with 10 additions and 17 deletions

View File

@@ -6,7 +6,7 @@
"cmp-nvim-lsp": { "branch": "main", "commit": "a8912b88ce488f411177fc8aed358b04dc246d7b" },
"cmp-path": { "branch": "main", "commit": "e52e640b7befd8113b3350f46e8cfcfe98fcf730" },
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
"copilot-cmp": { "branch": "master", "commit": "15fc12af3d0109fa76b60b5cffa1373697e261d1" },
"copilot.lua": { "branch": "master", "commit": "3680bebcc95dfd6c7509466367e66f6dc64a5140" },
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
"git-worktree.nvim": { "branch": "master", "commit": "f247308e68dab9f1133759b05d944569ad054546" },

View File

@@ -1,18 +1,11 @@
return {
"zbirenbaum/copilot-cmp",
enabled = false,
cmd = "Copilot",
event = "InsertEnter",
dependencies = {
'zbirenbaum/copilot.lua',
},
config = function()
-- Disable inline suggestions and panel
require('copilot').setup({
suggestion = { enabled = false },
panel = { enabled = false },
})
-- enable suggesions via cmp panel
require('copilot_cmp').setup({})
end,
'zbirenbaum/copilot.lua',
enabled = true,
cmd = "Copilot",
event = "InsertEnter",
opts = {
suggestion = {
auto_trigger = true,
},
},
}