updates
This commit is contained in:
parent
f0c740741e
commit
5c4f38c90c
1
init.vim
1
init.vim
@ -35,6 +35,7 @@ source ~/.config/nvim/plugin-confs/null-ls.lua
|
||||
source ~/.config/nvim/plugin-confs/nvim-cmp.lua
|
||||
source ~/.config/nvim/plugin-confs/fidget.lua
|
||||
source ~/.config/nvim/plugin-confs/symbols-outline.lua
|
||||
source ~/.config/nvim/plugin-confs/chatgpt.lua
|
||||
" source ~/.config/nvim/plugin-confs/copilot.lua
|
||||
" source ~/.config/nvim/plugin-confs/lsp-signature.lua
|
||||
" source ~/.config/nvim/plugin-confs/nvim-docs-view.lua
|
||||
|
@ -262,81 +262,6 @@ require('packer').startup(function(use)
|
||||
|
||||
use({
|
||||
"jackMort/ChatGPT.nvim",
|
||||
config = function()
|
||||
require("chatgpt").setup({
|
||||
welcome_message = WELCOME_MESSAGE, -- set to "" if you don't like the fancy 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%",
|
||||
},
|
||||
},
|
||||
chat_window = {
|
||||
filetype = "chatgpt",
|
||||
border = {
|
||||
highlight = "FloatBorder",
|
||||
style = "rounded",
|
||||
text = {
|
||||
top = " ChatGPT ",
|
||||
},
|
||||
},
|
||||
},
|
||||
settings_window = {
|
||||
border = {
|
||||
style = "rounded",
|
||||
text = {
|
||||
top = " Settings ",
|
||||
},
|
||||
},
|
||||
},
|
||||
chat_input = {
|
||||
prompt = " ",
|
||||
border = {
|
||||
highlight = "FloatBorder",
|
||||
style = "rounded",
|
||||
text = {
|
||||
top_align = "center",
|
||||
top = " Prompt ",
|
||||
},
|
||||
},
|
||||
win_options = {
|
||||
winhighlight = "Normal:Normal",
|
||||
},
|
||||
},
|
||||
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",
|
||||
model = "gpt-3.5-turbo",
|
||||
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 = "<Right>",
|
||||
}
|
||||
}
|
||||
)end,
|
||||
requires = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
|
77
plugin-confs/chatgpt.lua
Normal file
77
plugin-confs/chatgpt.lua
Normal file
@ -0,0 +1,77 @@
|
||||
require("chatgpt").setup({
|
||||
{
|
||||
welcome_message = "ChatGPT is ready!",
|
||||
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 = "gpt-3.5-turbo",
|
||||
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>" },
|
||||
submit = "<C-Enter>",
|
||||
yank_last = "<C-y>",
|
||||
yank_last_code = "<C-k>",
|
||||
scroll_up = "<C-u>",
|
||||
scroll_down = "<C-d>",
|
||||
toggle_settings = "<C-o>",
|
||||
new_session = "<C-n>",
|
||||
cycle_windows = "<Tab>",
|
||||
-- in the Sessions pane
|
||||
select_session = "<Space>",
|
||||
rename_session = "r",
|
||||
delete_session = "d",
|
||||
},
|
||||
}
|
||||
})
|
Loading…
Reference in New Issue
Block a user