More aider commands

This commit is contained in:
Chris
2025-06-30 09:10:05 +01:00
parent 379f2acd55
commit 2dc48b5b4c
2 changed files with 45 additions and 10 deletions

View File

@@ -15,6 +15,50 @@ 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>ag',
function()
require('nvim_aider').setup {
aider_cmd = 'aider',
args = {
'--config=$HOME/.config/aider/aider.yaml',
'--env-file=$(pwd)/.aider.env',
'--model=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',
},
},
dependencies = {
'folke/snacks.nvim',
@@ -43,6 +87,7 @@ return {
args = {
'--config=$HOME/.config/aider/aider.yaml',
'--env-file=$(pwd)/.aider.env',
'--architect',
},
auto_reload = true,
win = {

View File

@@ -249,16 +249,6 @@ return {
},
},
volar = {
on_attach = function(client, bufnr)
client.server_capabilities.documentFormattingProvider = false
end,
capabilities = {
documentFormattingProvider = true,
documentRangeFormattingProvider = true,
},
},
phpactor = {
on_attach = function(client, bufnr)
client.server_capabilities.documentFormattingProvider = false