Cleaning up
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
require('helpers').edit_cf('pa', '/lua/plugins/aider.lua')
|
||||
|
||||
local change_model_function = function(model)
|
||||
return function()
|
||||
require('nvim_aider').api.send_command('/model', model)
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
'GeorgesAlkhouri/nvim-aider',
|
||||
cmd = 'Aider',
|
||||
@@ -15,71 +21,10 @@ return {
|
||||
-- Example nvim-tree.lua integration if needed
|
||||
{ '<leader>a+', '<cmd>AiderTreeAddFile<cr>', desc = 'Add File from Tree to Aider', ft = 'NvimTree' },
|
||||
{ '<leader>a-', '<cmd>AiderTreeDropFile<cr>', desc = 'Drop File from Tree from Aider', ft = 'NvimTree' },
|
||||
-- Open aider with gpt-4.1 as the main model
|
||||
-- {
|
||||
-- '<leader>a?',
|
||||
-- function()
|
||||
-- require('nvim_aider').setup {
|
||||
-- aider_cmd = 'aider',
|
||||
-- args = {
|
||||
-- '--config=$HOME/.config/aider/aider.yaml',
|
||||
-- '--env-file=$(pwd)/.aider.env',
|
||||
-- '--model=gpt-4.1',
|
||||
-- },
|
||||
-- auto_reload = true,
|
||||
-- win = {
|
||||
-- wo = { winbar = 'Aider (GPT-4.1)' },
|
||||
-- style = 'nvim_aider',
|
||||
-- position = 'bottom',
|
||||
-- },
|
||||
-- }
|
||||
-- vim.cmd 'Aider toggle'
|
||||
-- end,
|
||||
-- desc = 'Open Aider with GPT-4.1',
|
||||
-- },
|
||||
-- {
|
||||
-- '<leader>a>',
|
||||
-- function()
|
||||
-- require('nvim_aider').setup {
|
||||
-- aider_cmd = 'aider',
|
||||
-- args = {
|
||||
-- '--config=$HOME/.config/aider/aider.yaml',
|
||||
-- '--env-file=$(pwd)/.aider.env',
|
||||
-- '--model=openai/gemini-2.5-pro',
|
||||
-- '--architect',
|
||||
-- },
|
||||
-- auto_reload = true,
|
||||
-- win = {
|
||||
-- wo = { winbar = 'Aider (Gemini-2.5-Pro)' },
|
||||
-- style = 'nvim_aider',
|
||||
-- position = 'bottom',
|
||||
-- },
|
||||
-- }
|
||||
-- vim.cmd 'Aider toggle'
|
||||
-- end,
|
||||
-- desc = 'Open Aider with Gemini 2.5 Pro',
|
||||
-- },
|
||||
-- {
|
||||
-- '<leader>a4',
|
||||
-- function()
|
||||
-- require('nvim_aider').api.send_command('/model', 'gpt-4.1')
|
||||
-- end,
|
||||
-- desc = 'Switch aider model to GPT-4.1',
|
||||
-- },
|
||||
-- {
|
||||
-- '<leader>ao',
|
||||
-- function()
|
||||
-- require('nvim_aider').api.send_command('/model', 'o4-mini')
|
||||
-- end,
|
||||
-- desc = 'Switch aider model to o4-mini',
|
||||
-- },
|
||||
-- {
|
||||
-- '<leader>ag',
|
||||
-- function()
|
||||
-- require('nvim_aider').api.send_command('/model', 'openai/gemini-2.5-pro')
|
||||
-- end,
|
||||
-- desc = 'Switch aider model to Gemini 2.5 Pro',
|
||||
-- },
|
||||
{ '<leader>am4', change_model_function('gpt-4.1'), desc = 'Switch aider model to GPT-4.1' },
|
||||
{ '<leader>amo', change_model_function('openai/o4-mini'), desc = 'Switch aider model to o4-mini' },
|
||||
{ '<leader>amg', change_model_function('openai/gemini-2.5-pro'), desc = 'Switch aider model to Gemini 2.5 Pro' },
|
||||
{ '<leader>ams', change_model_function('openai/claude-sonnet-4'), desc = 'Switch aider model to Claude Sonnet 4' },
|
||||
},
|
||||
dependencies = {
|
||||
'folke/snacks.nvim',
|
||||
|
||||
Reference in New Issue
Block a user