-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathconfig.lua
53 lines (51 loc) · 969 Bytes
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Ask = {
handler = tools.disposable_ask_handler,
opts = {
position = {
row = 2,
col = 0,
},
title = " Ask ",
inline_assistant = true,
language = "Chinese",
-- [optinal] set your llm model
url = "https://api.chatanywhere.tech/v1/chat/completions",
model = "gpt-4o-mini",
api_type = "openai",
fetch_key = function()
return vim.env.CHAT_ANYWHERE_KEY
end,
-- display diff
display = {
mapping = {
mode = "n",
keys = { "d" },
},
action = nil,
},
-- accept diff
accept = {
mapping = {
mode = "n",
keys = { "Y", "y" },
},
action = nil,
},
-- reject diff
reject = {
mapping = {
mode = "n",
keys = { "N", "n" },
},
action = nil,
},
-- close diff
close = {
mapping = {
mode = "n",
keys = { "<esc>" },
},
action = nil,
},
},
},