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
+22-5
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,21 @@ magenta.nvim is a plugin for leveraging LLM agents in neovim. Think cursor-compo
7
7
Rather than writing complex code to compress your repo and send it to the LLM (like a repomap, etc...), magenta is built around the idea that the LLM can ask for what it needs to via tools.
8
8
Flagship models will continue to get better at tools use, and as this happens, the gap between tools like magenta and other agentic tools will grow smaller.
9
9
10
-
# Installation (lazy.nvim)
10
+
# Installation
11
11
12
12
Make sure you have [node](https://nodejs.org/en/download) installed, at least `v20`:
13
13
14
14
```
15
15
node --version
16
16
```
17
17
18
+
The plugin will look for configuration for providers in the following env variables:
19
+
20
+
- anthropic: ANTHROPIC_API_KEY
21
+
- openai: OPENAI_API_KEY, OPENAI_BASE_URL
22
+
23
+
## Using lazy.nvim
24
+
18
25
```lua
19
26
{
20
27
"dlants/magenta.nvim",
@@ -24,10 +31,20 @@ node --version
24
31
},
25
32
```
26
33
27
-
The plugin will look for configuration for providers in the following env variables:
34
+
## Using vim-plug
28
35
29
-
- anthropic: ANTHROPIC_API_KEY
30
-
- openai: OPENAI_API_KEY, OPENAI_BASE_URL
36
+
```lua
37
+
localvim=vim
38
+
localPlug=vim.fn['plug#']
39
+
40
+
vim.call('plug#begin')
41
+
Plug('dlants/magenta.vim', {
42
+
['do'] ='bun install --frozen-lockfile',
43
+
})
44
+
vim.call('plug#end')
45
+
46
+
require('magenta').setup()
47
+
```
31
48
32
49
# Usage
33
50
@@ -43,7 +60,7 @@ TLDR:
43
60
44
61
-`<leader>mt` is for `:Magenta toggle`, will toggle the sidebar on and off.
45
62
-`<leader>mp` is for `:Magenta paste-selection`. In visual mode it will take the current selection and paste it into the input buffer.
46
-
-`<leader>mc` is for `:Magenta context-files` with your _current_ file. It will pin the current file to your context.
63
+
-`<leader>mb` is for `:Magenta context-files` with your _current_ file. It will pin the current file to your context.
47
64
-`<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.
48
65
-`<leader>mc` is for `:Magenta clear`, which will clear the current chat.
49
66
-`<leader>ma` is for `:Magenta abort`, which will abort the current in-flight request.
0 commit comments