mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 08:53:31 +02:00
enc: make modular config
This commit is contained in:
parent
d46370f0b3
commit
624d3aceb6
10 changed files with 610 additions and 374 deletions
|
@ -1,76 +1,76 @@
|
|||
local status_ok, chatgpt = pcall(require, "chatgpt")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
local WELCOME_MESSAGE = [[
|
||||
Welcome to ChatGPT.
|
||||
]]
|
||||
chatgpt.setup({
|
||||
welcome_message = WELCOME_MESSAGE, -- set to "" if you don't like the fancy godot robot
|
||||
loading_text = "loading",
|
||||
question_sign = "", -- you can use emoji if you want e.g. 🙂
|
||||
answer_sign = "ﮧ", -- 🤖
|
||||
max_line_length = 120,
|
||||
yank_register = "+",
|
||||
chat_layout = {
|
||||
relative = "editor",
|
||||
position = "50%",
|
||||
size = {
|
||||
height = "80%",
|
||||
width = "80%",
|
||||
},
|
||||
},
|
||||
settings_window = {
|
||||
border = {
|
||||
style = "rounded",
|
||||
text = {
|
||||
top = " Settings ",
|
||||
},
|
||||
},
|
||||
},
|
||||
chat_window = {
|
||||
filetype = "chatgpt",
|
||||
border = {
|
||||
highlight = "FloatBorder",
|
||||
style = "rounded",
|
||||
text = {
|
||||
top = " ChatGPT ",
|
||||
},
|
||||
},
|
||||
},
|
||||
chat_input = {
|
||||
prompt = " ",
|
||||
border = {
|
||||
highlight = "FloatBorder",
|
||||
style = "rounded",
|
||||
text = {
|
||||
top_align = "center",
|
||||
top = " Prompt ",
|
||||
},
|
||||
},
|
||||
},
|
||||
openai_params = {
|
||||
model = "text-davinci-003",
|
||||
frequency_penalty = 0,
|
||||
presence_penalty = 0,
|
||||
max_tokens = 300,
|
||||
temperature = 0,
|
||||
top_p = 1,
|
||||
n = 1,
|
||||
},
|
||||
openai_edit_params = {
|
||||
model = "code-davinci-edit-001",
|
||||
temperature = 0,
|
||||
top_p = 1,
|
||||
n = 1,
|
||||
},
|
||||
keymaps = {
|
||||
close = { "<C-c>", "<Esc>" },
|
||||
yank_last = "<C-y>",
|
||||
scroll_up = "<C-u>",
|
||||
scroll_down = "<C-d>",
|
||||
toggle_settings = "<C-o>",
|
||||
new_session = "<C-n>",
|
||||
cycle_windows = "<Tab>",
|
||||
},
|
||||
})
|
||||
-- local status_ok, chatgpt = pcall(require, "chatgpt")
|
||||
-- if not status_ok then
|
||||
-- return
|
||||
-- end
|
||||
-- local WELCOME_MESSAGE = [[
|
||||
-- Welcome to ChatGPT.
|
||||
-- ]]
|
||||
-- chatgpt.setup({
|
||||
-- welcome_message = WELCOME_MESSAGE, -- set to "" if you don't like the fancy godot robot
|
||||
-- loading_text = "loading",
|
||||
-- question_sign = "", -- you can use emoji if you want e.g. 🙂
|
||||
-- answer_sign = "ﮧ", -- 🤖
|
||||
-- max_line_length = 120,
|
||||
-- yank_register = "+",
|
||||
-- chat_layout = {
|
||||
-- relative = "editor",
|
||||
-- position = "50%",
|
||||
-- size = {
|
||||
-- height = "80%",
|
||||
-- width = "80%",
|
||||
-- },
|
||||
-- },
|
||||
-- settings_window = {
|
||||
-- border = {
|
||||
-- style = "rounded",
|
||||
-- text = {
|
||||
-- top = " Settings ",
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- chat_window = {
|
||||
-- filetype = "chatgpt",
|
||||
-- border = {
|
||||
-- highlight = "FloatBorder",
|
||||
-- style = "rounded",
|
||||
-- text = {
|
||||
-- top = " ChatGPT ",
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- chat_input = {
|
||||
-- prompt = " ",
|
||||
-- border = {
|
||||
-- highlight = "FloatBorder",
|
||||
-- style = "rounded",
|
||||
-- text = {
|
||||
-- top_align = "center",
|
||||
-- top = " Prompt ",
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- openai_params = {
|
||||
-- model = "text-davinci-003",
|
||||
-- frequency_penalty = 0,
|
||||
-- presence_penalty = 0,
|
||||
-- max_tokens = 300,
|
||||
-- temperature = 0,
|
||||
-- top_p = 1,
|
||||
-- n = 1,
|
||||
-- },
|
||||
-- openai_edit_params = {
|
||||
-- model = "code-davinci-edit-001",
|
||||
-- temperature = 0,
|
||||
-- top_p = 1,
|
||||
-- n = 1,
|
||||
-- },
|
||||
-- keymaps = {
|
||||
-- close = { "<C-c>", "<Esc>" },
|
||||
-- yank_last = "<C-y>",
|
||||
-- scroll_up = "<C-u>",
|
||||
-- scroll_down = "<C-d>",
|
||||
-- toggle_settings = "<C-o>",
|
||||
-- new_session = "<C-n>",
|
||||
-- cycle_windows = "<Tab>",
|
||||
-- },
|
||||
-- })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue