Skip to content

Commit

Permalink
refactor(neovim): update codecompanion settings
Browse files Browse the repository at this point in the history
  • Loading branch information
olimorris committed Nov 26, 2024
1 parent 8c3ed11 commit da66a99
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .config/nvim/lua/plugins/coding.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ return {
},
{
"olimorris/codecompanion.nvim",
dependencies = {
{ "echasnovski/mini.pick", config = true },
{ "ibhagwan/fzf-lua", config = true },
},
config = function()
require("codecompanion").setup({
adapters = {
Expand Down Expand Up @@ -43,6 +47,13 @@ return {
env = {
api_key = "cmd:op read op://personal/OpenAI_API/credential --no-newline",
},
schema = {
model = {
default = function()
return "o1-preview"
end,
},
},
})
end,
xai = function()
Expand All @@ -69,15 +80,28 @@ return {
provider = "telescope",
},
},
["help"] = {
opts = {
provider = "telescope",
},
},
["file"] = {
opts = {
provider = "telescope",
},
},
["symbols"] = {
opts = {
provider = "telescope",
},
},
},
},
},
display = {
action_palette = {
provider = "default",
},
chat = {
show_references = true,
show_header_separator = false,
Expand Down

0 comments on commit da66a99

Please sign in to comment.