mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-24 14:18:36 +02:00
feat: configure aider, vim-test, keymaps...
This commit is contained in:
parent
b903bc371f
commit
57122d01c5
6 changed files with 177 additions and 41 deletions
46
lua/custom/plugins/nvim-aider.lua
Normal file
46
lua/custom/plugins/nvim-aider.lua
Normal file
|
@ -0,0 +1,46 @@
|
|||
return {
|
||||
{
|
||||
'GeorgesAlkhouri/nvim-aider',
|
||||
cmd = 'Aider',
|
||||
-- Example key mappings for common actions:
|
||||
keys = {
|
||||
{ '<leader>i/', '<cmd>Aider toggle<cr>', desc = 'Toggle Aider' },
|
||||
{ '<leader>is', '<cmd>Aider send<cr>', desc = 'Send to Aider', mode = { 'n', 'v' } },
|
||||
{ '<leader>ic', '<cmd>Aider command<cr>', desc = 'Aider Commands' },
|
||||
{ '<leader>ib', '<cmd>Aider buffer<cr>', desc = 'Send Buffer' },
|
||||
{ '<leader>i+', '<cmd>Aider add<cr>', desc = 'Add File' },
|
||||
{ '<leader>i-', '<cmd>Aider drop<cr>', desc = 'Drop File' },
|
||||
{ '<leader>ir', '<cmd>Aider add readonly<cr>', desc = 'Add Read-Only' },
|
||||
{ '<leader>iR', '<cmd>Aider reset<cr>', desc = 'Reset Session' },
|
||||
},
|
||||
dependencies = {
|
||||
'folke/snacks.nvim',
|
||||
--- The below dependencies are optional
|
||||
--- Neo-tree integration
|
||||
{
|
||||
'nvim-neo-tree/neo-tree.nvim',
|
||||
opts = function(_, opts)
|
||||
-- Example mapping configuration (already set by default)
|
||||
-- opts.window = {
|
||||
-- mappings = {
|
||||
-- ["+"] = { "nvim_aider_add", desc = "add to aider" },
|
||||
-- ["-"] = { "nvim_aider_drop", desc = "drop from aider" }
|
||||
-- ["="] = { "nvim_aider_add_read_only", desc = "add read-only to aider" }
|
||||
-- }
|
||||
-- }
|
||||
require('nvim_aider.neo_tree').setup(opts)
|
||||
end,
|
||||
},
|
||||
},
|
||||
config = true,
|
||||
opts = {
|
||||
auto_reload = true,
|
||||
},
|
||||
init = function()
|
||||
local wk = require 'which-key'
|
||||
wk.add {
|
||||
{ '<leader>i', group = 'A[i]der commands' },
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue