Skip to content

Commit

Permalink
🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
psm14 committed Jan 20, 2025
1 parent 56d1342 commit 1c89a52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ Using [lazy.nvim](https://github.com/folke/lazy.nvim):

## Configuration

The plugin can be configured with custom options:
The plugin works out of the box with sensible defaults, but can be customized with optional settings:

```lua
require('toggleterm-aider').setup({
-- Custom aider CLI arguments (optional)
-- Custom aider CLI arguments
args = "--no-pretty --no-auto-commit --watch-files",

-- Custom keymaps (optional)
-- Custom keymaps (defaults shown below)
toggle_key = '<leader>as', -- Toggle aider terminal
add_key = '<leader>aa', -- Add file to aider
drop_key = '<leader>ad' -- Drop file from aider
Expand Down
2 changes: 1 addition & 1 deletion lua/toggleterm-aider/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function M.setup(opts)

-- Set up keymaps
vim.keymap.set('n', opts.toggle_key or '<leader>as', aider_toggle, { desc = 'Toggle Aider terminal' })
vim.keymap.set('t', opts.toggle_key or '<leader>as', '<C-\\><C-n>:lua require("toggletree-aider").toggle()<CR>', { desc = 'Toggle Aider terminal' })
vim.keymap.set('t', opts.toggle_key or '<leader>as', '<C-\\><C-n>:lua require("toggleterm-aider").toggle()<CR>', { desc = 'Toggle Aider terminal' })
vim.keymap.set('n', opts.add_key or '<leader>aa', aider_smart_add, { desc = 'Add file to Aider' })
vim.keymap.set('n', opts.drop_key or '<leader>ad', aider_smart_drop, { desc = 'Drop file from Aider' })
end
Expand Down

0 comments on commit 1c89a52

Please sign in to comment.