You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+2-12
Original file line number
Diff line number
Diff line change
@@ -31,27 +31,17 @@ The plugin will look for configuration for providers in the following env variab
31
31
32
32
## Using vim-plug
33
33
34
-
Example with the openai provider and lazy loading.
35
-
36
34
```lua
37
35
localvim=vim
38
36
localPlug=vim.fn['plug#']
39
37
40
38
vim.call('plug#begin')
41
39
Plug('dlants/magenta.vim', {
42
40
['do'] ='bun install --frozen-lockfile',
43
-
['on'] ='Magenta',
44
41
})
45
42
vim.call('plug#end')
46
43
47
-
localmagenta=require('magenta')
48
-
49
-
magenta.setup({
50
-
provider='openai',
51
-
openai= {
52
-
model='gpt-4o'
53
-
},
54
-
})
44
+
require('magenta').setup()
55
45
```
56
46
57
47
# Usage
@@ -68,7 +58,7 @@ TLDR:
68
58
69
59
-`<leader>mt` is for `:Magenta toggle`, will toggle the sidebar on and off.
70
60
-`<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.
72
62
-`<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.
73
63
-`<leader>mc` is for `:Magenta clear`, which will clear the current chat.
74
64
-`<leader>ma` is for `:Magenta abort`, which will abort the current in-flight request.
0 commit comments