fix chat gpt and change to doom-one
This commit is contained in:
parent
e582ebeab1
commit
0df26f6082
2
init.vim
2
init.vim
@ -80,6 +80,6 @@ command! PS execute ":PackerSync"
|
|||||||
" set termguicolors
|
" set termguicolors
|
||||||
" colorscheme doom-one
|
" colorscheme doom-one
|
||||||
" colorscheme onedark
|
" colorscheme onedark
|
||||||
colorscheme catppuccin
|
" colorscheme catppuccin
|
||||||
highlight Pmenu ctermfg=white ctermbg=black gui=NONE guifg=white guibg=#282C34
|
highlight Pmenu ctermfg=white ctermbg=black gui=NONE guifg=white guibg=#282C34
|
||||||
highlight PmenuSel guifg=purple guibg=red
|
highlight PmenuSel guifg=purple guibg=red
|
||||||
|
@ -37,7 +37,7 @@ require('packer').startup(function(use)
|
|||||||
},
|
},
|
||||||
suggestion = {
|
suggestion = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
auto_trigger = true,
|
auto_trigger = false,
|
||||||
debounce = 75,
|
debounce = 75,
|
||||||
keymap = {
|
keymap = {
|
||||||
accept = "<C-l>",
|
accept = "<C-l>",
|
||||||
@ -180,19 +180,19 @@ require('packer').startup(function(use)
|
|||||||
use 'williamboman/nvim-lsp-installer'
|
use 'williamboman/nvim-lsp-installer'
|
||||||
|
|
||||||
use { 'Mofiqul/dracula.nvim' }
|
use { 'Mofiqul/dracula.nvim' }
|
||||||
use {
|
use({
|
||||||
'NTBBloodbath/doom-one.nvim',
|
'NTBBloodbath/doom-one.nvim',
|
||||||
setup = function()
|
setup = function()
|
||||||
-- Add color to cursor
|
-- Add color to cursor
|
||||||
vim.g.doom_one_cursor_coloring = false
|
vim.g.doom_one_cursor_coloring = false
|
||||||
-- Set :terminal colors
|
-- Set :terminal colors
|
||||||
vim.g.doom_one_terminal_colors = false
|
vim.g.doom_one_terminal_colors = true
|
||||||
-- Enable italic comments
|
-- Enable italic comments
|
||||||
vim.g.doom_one_italic_comments = true
|
vim.g.doom_one_italic_comments = false
|
||||||
-- Enable TS support
|
-- Enable TS support
|
||||||
vim.g.doom_one_enable_treesitter = true
|
vim.g.doom_one_enable_treesitter = true
|
||||||
-- Color whole diagnostic text or only underline
|
-- Color whole diagnostic text or only underline
|
||||||
vim.g.doom_one_diagnostics_text_color = true
|
vim.g.doom_one_diagnostics_text_color = false
|
||||||
-- Enable transparent background
|
-- Enable transparent background
|
||||||
vim.g.doom_one_transparent_background = false
|
vim.g.doom_one_transparent_background = false
|
||||||
|
|
||||||
@ -201,24 +201,31 @@ require('packer').startup(function(use)
|
|||||||
vim.g.doom_one_pumblend_transparency = 20
|
vim.g.doom_one_pumblend_transparency = 20
|
||||||
|
|
||||||
-- Plugins integration
|
-- Plugins integration
|
||||||
vim.g.doom_one_plugin_neorg = false
|
vim.g.doom_one_plugin_neorg = true
|
||||||
vim.g.doom_one_plugin_barbar = false
|
vim.g.doom_one_plugin_barbar = false
|
||||||
vim.g.doom_one_plugin_telescope = true
|
vim.g.doom_one_plugin_telescope = false
|
||||||
vim.g.doom_one_plugin_neogit = true
|
vim.g.doom_one_plugin_neogit = true
|
||||||
vim.g.doom_one_plugin_nvim_tree = true
|
vim.g.doom_one_plugin_nvim_tree = true
|
||||||
vim.g.doom_one_plugin_dashboard = true
|
vim.g.doom_one_plugin_dashboard = true
|
||||||
vim.g.doom_one_plugin_startify = false
|
vim.g.doom_one_plugin_startify = true
|
||||||
vim.g.doom_one_plugin_whichkey = true
|
vim.g.doom_one_plugin_whichkey = true
|
||||||
vim.g.doom_one_plugin_indent_blankline = true
|
vim.g.doom_one_plugin_indent_blankline = true
|
||||||
vim.g.doom_one_plugin_vim_illuminate = false
|
vim.g.doom_one_plugin_vim_illuminate = true
|
||||||
vim.g.doom_one_plugin_lspsaga = true
|
vim.g.doom_one_plugin_lspsaga = false
|
||||||
|
end,
|
||||||
|
config = function()
|
||||||
|
vim.cmd("colorscheme doom-one")
|
||||||
|
vim.cmd(
|
||||||
|
"highlight Pmenu ctermfg=white ctermbg=black gui=NONE guifg=white guibg=#282C34")
|
||||||
|
vim.cmd("highlight PmenuSel guifg=purple guibg=red")
|
||||||
end
|
end
|
||||||
}
|
})
|
||||||
use { 'olimorris/onedarkpro.nvim' }
|
use { 'olimorris/onedarkpro.nvim' }
|
||||||
use { 'projekt0n/github-nvim-theme' }
|
use { 'projekt0n/github-nvim-theme' }
|
||||||
|
|
||||||
use({
|
use({
|
||||||
"jackMort/ChatGPT.nvim",
|
"jackMort/ChatGPT.nvim",
|
||||||
|
commit = "24bcca7",
|
||||||
requires = {
|
requires = {
|
||||||
"MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim",
|
"MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim",
|
||||||
"nvim-telescope/telescope.nvim"
|
"nvim-telescope/telescope.nvim"
|
||||||
|
@ -1,47 +1,95 @@
|
|||||||
require("chatgpt").setup({
|
require("chatgpt").setup({
|
||||||
{
|
api_key_cmd = "cat /home/sudacode/.config/openai/apikey",
|
||||||
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 = "+",
|
yank_register = "+",
|
||||||
chat_layout = {
|
edit_with_instructions = {
|
||||||
relative = "editor",
|
diff = false,
|
||||||
position = "50%",
|
keymaps = {
|
||||||
size = {
|
close = "<C-c>",
|
||||||
height = "80%",
|
accept = "<C-y>",
|
||||||
width = "80%",
|
toggle_diff = "<C-d>",
|
||||||
|
toggle_settings = "<C-o>",
|
||||||
|
cycle_windows = "<Tab>",
|
||||||
|
use_output_as_input = "<C-i>"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
chat = {
|
||||||
|
welcome_message = WELCOME_MESSAGE,
|
||||||
|
loading_text = "Loading, please wait ...",
|
||||||
|
question_sign = "",
|
||||||
|
answer_sign = "ﮧ",
|
||||||
|
max_line_length = 120,
|
||||||
|
sessions_window = {
|
||||||
|
border = { style = "rounded", text = { top = " Sessions " } },
|
||||||
|
win_options = {
|
||||||
|
winhighlight = "Normal:Normal,FloatBorder:FloatBorder"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
settings_window = {
|
keymaps = {
|
||||||
border = {
|
close = { "<C-c>" },
|
||||||
style = "rounded",
|
yank_last = "<C-y>",
|
||||||
text = {
|
yank_last_code = "<C-k>",
|
||||||
top = " Settings ",
|
scroll_up = "<C-u>",
|
||||||
|
scroll_down = "<C-d>",
|
||||||
|
new_session = "<C-n>",
|
||||||
|
cycle_windows = "<Tab>",
|
||||||
|
cycle_modes = "<C-f>",
|
||||||
|
select_session = "<Space>",
|
||||||
|
rename_session = "r",
|
||||||
|
delete_session = "d",
|
||||||
|
draft_message = "<C-d>",
|
||||||
|
toggle_settings = "<C-o>",
|
||||||
|
toggle_message_role = "<C-r>",
|
||||||
|
toggle_system_role_open = "<C-s>",
|
||||||
|
stop_generating = "<C-x>"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
popup_layout = {
|
||||||
|
default = "center",
|
||||||
|
center = { width = "80%", height = "80%" },
|
||||||
|
right = { width = "30%", width_settings_open = "50%" }
|
||||||
},
|
},
|
||||||
},
|
popup_window = {
|
||||||
chat_window = {
|
|
||||||
filetype = "chatgpt",
|
|
||||||
border = {
|
border = {
|
||||||
highlight = "FloatBorder",
|
highlight = "FloatBorder",
|
||||||
style = "rounded",
|
style = "rounded",
|
||||||
text = {
|
text = { top = " ChatGPT " }
|
||||||
top = " ChatGPT ",
|
|
||||||
},
|
},
|
||||||
|
win_options = {
|
||||||
|
wrap = true,
|
||||||
|
linebreak = true,
|
||||||
|
foldcolumn = "1",
|
||||||
|
winhighlight = "Normal:Normal,FloatBorder:FloatBorder"
|
||||||
},
|
},
|
||||||
|
buf_options = { filetype = "markdown" }
|
||||||
},
|
},
|
||||||
chat_input = {
|
system_window = {
|
||||||
|
border = {
|
||||||
|
highlight = "FloatBorder",
|
||||||
|
style = "rounded",
|
||||||
|
text = { top = " SYSTEM " }
|
||||||
|
},
|
||||||
|
win_options = {
|
||||||
|
wrap = true,
|
||||||
|
linebreak = true,
|
||||||
|
foldcolumn = "2",
|
||||||
|
winhighlight = "Normal:Normal,FloatBorder:FloatBorder"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
popup_input = {
|
||||||
prompt = " ",
|
prompt = " ",
|
||||||
border = {
|
border = {
|
||||||
highlight = "FloatBorder",
|
highlight = "FloatBorder",
|
||||||
style = "rounded",
|
style = "rounded",
|
||||||
text = {
|
text = { top_align = "center", top = " Prompt " }
|
||||||
top_align = "center",
|
|
||||||
top = " Prompt ",
|
|
||||||
},
|
},
|
||||||
|
win_options = { winhighlight = "Normal:Normal,FloatBorder:FloatBorder" },
|
||||||
|
submit = "<C-Enter>",
|
||||||
|
submit_n = "<Enter>",
|
||||||
|
max_visible_lines = 20
|
||||||
},
|
},
|
||||||
|
settings_window = {
|
||||||
|
border = { style = "rounded", text = { top = " Settings " } },
|
||||||
|
win_options = { winhighlight = "Normal:Normal,FloatBorder:FloatBorder" }
|
||||||
},
|
},
|
||||||
openai_params = {
|
openai_params = {
|
||||||
model = "gpt-3.5-turbo",
|
model = "gpt-3.5-turbo",
|
||||||
@ -50,28 +98,15 @@ require("chatgpt").setup({
|
|||||||
max_tokens = 300,
|
max_tokens = 300,
|
||||||
temperature = 0,
|
temperature = 0,
|
||||||
top_p = 1,
|
top_p = 1,
|
||||||
n = 1,
|
n = 1
|
||||||
},
|
},
|
||||||
openai_edit_params = {
|
openai_edit_params = {
|
||||||
model = "code-davinci-edit-001",
|
model = "code-davinci-edit-001",
|
||||||
temperature = 0,
|
temperature = 0,
|
||||||
top_p = 1,
|
top_p = 1,
|
||||||
n = 1,
|
n = 1
|
||||||
},
|
},
|
||||||
keymaps = {
|
actions_paths = {},
|
||||||
close = { "<C-c>" },
|
show_quickfixes_cmd = "Trouble quickfix",
|
||||||
submit = "<C-Enter>",
|
predefined_chat_gpt_prompts = "https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv"
|
||||||
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