Improved AI tools
This commit is contained in:
@@ -2,26 +2,43 @@ require('helpers').edit_cf('pa', '/lua/plugins/codecompanion.lua')
|
||||
|
||||
return {
|
||||
'olimorris/codecompanion.nvim',
|
||||
opts = {
|
||||
adapters = {
|
||||
opts = function(_, opts)
|
||||
opts.adapters = {
|
||||
copilot = function()
|
||||
return require('codecompanion.adapters').extend('copilot', {
|
||||
schema = {
|
||||
model = {
|
||||
default = 'claude-3.7-sonnet',
|
||||
default = 'gpt-4o',
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
display = {
|
||||
}
|
||||
|
||||
opts.display = {
|
||||
chat = {
|
||||
show_settings = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
opts.strategies = {
|
||||
chat = {
|
||||
adapter = 'copilot',
|
||||
slash_commands = {
|
||||
codebase = require('vectorcode.integrations').codecompanion.chat.make_slash_command(),
|
||||
},
|
||||
tools = {
|
||||
vectorcode = {
|
||||
description = 'Run VectorCode to retrieve the project context.',
|
||||
callback = require('vectorcode.integrations').codecompanion.chat.make_tool(),
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
'Davidyz/VectorCode',
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user