feat: remove copilot

Signed-off-by: d0zingcat <iamtangli42@gmail.com>
This commit is contained in:
2026-03-04 15:10:26 +08:00
parent dcd6c2fea6
commit bb2ca58da6
3 changed files with 3 additions and 64 deletions

View File

@@ -12,7 +12,6 @@
"cmp-path": { "branch": "main", "commit": "c6635aae33a50d6010bf1aa756ac2398a2d54c32" },
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
"conform.nvim": { "branch": "master", "commit": "b529dd4897c85c3188cc787084089a9d55843093" },
"copilot.lua": { "branch": "master", "commit": "5f726c8e6bbcd7461ee0b870d4e6c8a973b55b64" },
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
"flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" },

View File

@@ -60,17 +60,7 @@ return {
},
},
-- Copilot 配置(可选)
copilot = {
endpoint = "https://api.githubcopilot.com",
model = "gpt-4o-copilot",
timeout = 30000,
context_window = 128000,
extra_request_body = {
temperature = 0.75,
max_completion_tokens = 16384,
},
},
},
-- 系统提示词 - 定义 AI 助手的角色
@@ -120,7 +110,7 @@ When suggesting code changes:
},
-- 建议 Provider 配置(用于代码补全)
suggestion_provider = "copilot", -- 或 "default"
suggestion_provider = "default",
-- 上下文窗口配置
context_window = 6000,

View File

@@ -283,55 +283,5 @@ return {
},
},
-- AI 补全集成
{
"zbirenbaum/copilot.lua",
cmd = "Copilot",
event = "InsertEnter",
config = function()
require("copilot").setup({
panel = {
enabled = true,
auto_refresh = true,
keymap = {
jump_prev = "[[",
jump_next = "]]",
accept = "<CR>",
refresh = "gr",
open = "<M-CR>"
},
layout = {
position = "bottom", -- | top | left | right
ratio = 0.4
},
},
suggestion = {
enabled = true,
auto_trigger = true,
debounce = 75,
keymap = {
accept = "<M-l>",
accept_word = "<M-w>",
accept_line = "<M-j>",
next = "<M-]>",
prev = "<M-[>",
dismiss = "<C-]>",
},
},
filetypes = {
yaml = false,
markdown = false,
help = false,
gitcommit = false,
gitrebase = false,
hgcommit = false,
svn = false,
cvs = false,
["."] = false,
},
copilot_node_command = 'node', -- Node.js 版本
server_opts_overrides = {},
})
end,
},
}