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',
|
||||
},
|
||||
}
|
||||
|
||||
3
lua/plugins/fidget.lua
Normal file
3
lua/plugins/fidget.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
return {
|
||||
'j-hui/fidget.nvim',
|
||||
}
|
||||
10
lua/plugins/git_blame.lua
Normal file
10
lua/plugins/git_blame.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
'f-person/git-blame.nvim',
|
||||
event = 'VeryLazy',
|
||||
opts = {
|
||||
enabled = true, -- if you want to enable the plugin
|
||||
message_template = ' <summary> • <date> • <author> • <<sha>>', -- template for the blame message, check the Message template section for more options
|
||||
date_format = '%m-%d-%Y %H:%M:%S', -- template for the date, check Date format section for more options
|
||||
virtual_text_column = 1, -- virtual text start column, check Start virtual text at column section for more options
|
||||
},
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
require('helpers').edit_cf('pg', '/lua/plugins/gitsigns.lua')
|
||||
-- Adds git related signs to the gutter, as well as utilities for managing changes
|
||||
-- See `:help gitsigns`
|
||||
return {
|
||||
|
||||
8
lua/plugins/vectorcode.lua
Normal file
8
lua/plugins/vectorcode.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
require('helpers').edit_cf('pv', '/lua/plugins/vectorcode.lua')
|
||||
return {
|
||||
'Davidyz/VectorCode',
|
||||
version = '*', -- optional, depending on whether you're on nightly or release
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
build = 'pipx upgrade vectorcode',
|
||||
cmd = 'VectorCode', -- if you're lazy-loading VectorCode
|
||||
}
|
||||
Reference in New Issue
Block a user