More changes
This commit is contained in:
@@ -4,12 +4,51 @@ return {
|
||||
'olimorris/codecompanion.nvim',
|
||||
opts = function(_, opts)
|
||||
opts.adapters = {
|
||||
copilot = function()
|
||||
gpt = function()
|
||||
return require('codecompanion.adapters').extend('copilot', {
|
||||
schema = {
|
||||
model = {
|
||||
default = 'gpt-4o',
|
||||
},
|
||||
max_tokens = {
|
||||
default = 1000000,
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
flash = function()
|
||||
return require('codecompanion.adapters').extend('copilot', {
|
||||
schema = {
|
||||
model = {
|
||||
default = 'gemini-2.0-flash',
|
||||
},
|
||||
max_tokens = {
|
||||
default = 1000000,
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
gemini = function()
|
||||
return require('codecompanion.adapters').extend('copilot', {
|
||||
schema = {
|
||||
model = {
|
||||
default = 'gemini-2.5-pro',
|
||||
},
|
||||
max_tokens = {
|
||||
default = 1000000,
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
sonnet = function()
|
||||
return require('codecompanion.adapters').extend('copilot', {
|
||||
schema = {
|
||||
model = {
|
||||
default = 'claude-3.7-sonnet',
|
||||
},
|
||||
max_tokens = {
|
||||
default = 1000000,
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
@@ -23,7 +62,7 @@ return {
|
||||
|
||||
opts.strategies = {
|
||||
chat = {
|
||||
adapter = 'copilot',
|
||||
adapter = 'gemini',
|
||||
slash_commands = {
|
||||
codebase = require('vectorcode.integrations').codecompanion.chat.make_slash_command(),
|
||||
},
|
||||
@@ -34,6 +73,9 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
inline = {
|
||||
adapter = 'flash',
|
||||
},
|
||||
}
|
||||
end,
|
||||
dependencies = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
require('helpers').edit_cf('pd', '/lua/plugins/debug.lua')
|
||||
-- debug.lua
|
||||
--
|
||||
-- Shows how to use the DAP plugin to debug your code.
|
||||
@@ -96,6 +97,26 @@ return {
|
||||
},
|
||||
}
|
||||
|
||||
dap.adapters.php = {
|
||||
type = 'executable',
|
||||
command = 'node',
|
||||
args = { '/Users/chris/.local/src/vscode-php-debug/out/phpDebug.js' },
|
||||
}
|
||||
|
||||
dap.configurations.php = {
|
||||
{
|
||||
type = 'php',
|
||||
request = 'launch',
|
||||
name = 'Listen for XDebug',
|
||||
port = 9003,
|
||||
log = true,
|
||||
pathMappings = {
|
||||
['/var/www/html/'] = vim.fn.getcwd() .. '/',
|
||||
},
|
||||
hostname = '0.0.0.0',
|
||||
},
|
||||
}
|
||||
|
||||
-- Dap UI setup
|
||||
-- For more information, see |:help nvim-dap-ui|
|
||||
dapui.setup {
|
||||
|
||||
@@ -5,4 +5,7 @@ return {
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
build = 'pipx upgrade vectorcode',
|
||||
cmd = 'VectorCode', -- if you're lazy-loading VectorCode
|
||||
opts = {
|
||||
async_backend = 'lsp',
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user