Skip to content

Commit bce6b42

Browse files
authored
use default config for vim-plug
..and fix a typo
1 parent 794f51c commit bce6b42

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

README.md

+2-12
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,17 @@ The plugin will look for configuration for providers in the following env variab
3131

3232
## Using vim-plug
3333

34-
Example with the openai provider and lazy loading.
35-
3634
```lua
3735
local vim = vim
3836
local Plug = vim.fn['plug#']
3937

4038
vim.call('plug#begin')
4139
Plug('dlants/magenta.vim', {
4240
['do'] = 'bun install --frozen-lockfile',
43-
['on'] = 'Magenta',
4441
})
4542
vim.call('plug#end')
4643

47-
local magenta = require('magenta')
48-
49-
magenta.setup({
50-
provider = 'openai',
51-
openai = {
52-
model = 'gpt-4o'
53-
},
54-
})
44+
require('magenta').setup()
5545
```
5646

5747
# Usage
@@ -68,7 +58,7 @@ TLDR:
6858

6959
- `<leader>mt` is for `:Magenta toggle`, will toggle the sidebar on and off.
7060
- `<leader>mp` is for `:Magenta paste-selection`. In visual mode it will take the current selection and paste it into the input buffer.
71-
- `<leader>mc` is for `:Magenta context-files` with your _current_ file. It will pin the current file to your context.
61+
- `<leader>mb` is for `:Magenta context-files` with your _current_ file. It will pin the current file to your context.
7262
- `<leader>mf` is for `:Magenta context-files` it allows you to select files via fzf-lua, and will pin those files to your context. This requires that fzf-lua is installed.
7363
- `<leader>mc` is for `:Magenta clear`, which will clear the current chat.
7464
- `<leader>ma` is for `:Magenta abort`, which will abort the current in-flight request.

0 commit comments

Comments
 (0)