add codecompanin and change theme
This commit is contained in:
43
lua/plugins/codecompanian.lua
Normal file
43
lua/plugins/codecompanian.lua
Normal file
@ -0,0 +1,43 @@
|
||||
return {
|
||||
"olimorris/codecompanion.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"hrsh7th/nvim-cmp", -- Optional: For using slash commands and variables in the chat buffer
|
||||
"nvim-telescope/telescope.nvim", -- Optional: For using slash commands
|
||||
{ "stevearc/dressing.nvim", opts = {} }, -- Optional: Improves the default Neovim UI
|
||||
},
|
||||
config = true,
|
||||
opts = {
|
||||
log_level = "TRACE",
|
||||
strategies = {
|
||||
chat = {
|
||||
adapter = "openai",
|
||||
},
|
||||
inline = {
|
||||
adapter = "openai",
|
||||
},
|
||||
agent = {
|
||||
adapter = "openai",
|
||||
},
|
||||
},
|
||||
adapters = {
|
||||
openai = function()
|
||||
return require("codecompanion.adapters").extend("openai", {
|
||||
env = {
|
||||
api_key = "cmd:sed -n '1p' ~/.config/nvim/secrets/openai_config.txt | tr -d '\n'",
|
||||
},
|
||||
schema = {
|
||||
model = {
|
||||
default = "claude-3-5-sonnet-20240620",
|
||||
},
|
||||
},
|
||||
url = "cmd:sed -n '2p' ~/.config/nvim/secrets/openai_config.txt | tr -d '\n'",
|
||||
opts = {
|
||||
stream = false,
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
},
|
||||
}
|
@ -1,16 +1,23 @@
|
||||
return {
|
||||
{ "rafcamlet/nvim-luapad" },
|
||||
{ "echasnovski/mini.nvim", version = false },
|
||||
-- theme 主题
|
||||
{ "sainnhe/everforest" },
|
||||
{
|
||||
"folke/tokyonight.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
opts = {},
|
||||
},
|
||||
{ "catppuccin/nvim", name = "catppuccin", priority = 1000 },
|
||||
{ "marko-cerovac/material.nvim" },
|
||||
{ "akinsho/toggleterm.nvim", version = "*" },
|
||||
{ "smjonas/live-command.nvim" },
|
||||
{ "kdheepak/lazygit.nvim" },
|
||||
{
|
||||
"iamcco/markdown-preview.nvim",
|
||||
build = function()
|
||||
vim.fn["mkdp#util#install"]()
|
||||
end,
|
||||
"MeanderingProgrammer/render-markdown.nvim",
|
||||
opts = {},
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter", "echasnovski/mini.nvim" }, -- if you use the mini.nvim suite
|
||||
},
|
||||
{ "jakewvincent/mkdnflow.nvim" },
|
||||
{
|
||||
|
Reference in New Issue
Block a user