@@ -1,4 +1,4 @@
1-# vim-pi-complete
1+# vim-ai-complete
22
33 A simple Neovim plugin that mimics Cursor's selection prompt and Zed's editor assist feature using the pi coding agent's non-interactive mode.
44
@@ -8,7 +8,7 @@ Currently, the plugin expects `pi` to be installed and ready to use. The argumen
88
99 ## How to use
1010
11-Select a visual block, line, or selection, and then type `:Pi <your prompt here>`. The selection will be replaced with the model's output.
11+Select a visual block, line, or selection, and then type `:Ai <your prompt here>`. The selection will be replaced with the model's output.
1212 You can give any kind of prompt, but the agent has no edit tools, so it can only reply with the new text, and it is instructed to do so.
1313 There is no visual feedback on submit, but if an error occurs, you will see it.
1414
@@ -23,10 +23,10 @@ This plugin uses the standard Neovim plugin layout, so it should work with any p
2323 Add a plugin spec like this:
2424
2525 ```lua
26--- ~/.config/nvim/lua/plugins/pi-complete.lua
26+-- ~/.config/nvim/lua/plugins/ai-complete.lua
2727 return {
28- "sacenox/vim-pi-complete",
29- cmd = { "Pi" },
28+ "sacenox/vim-ai-complete",
29+ cmd = { "Ai" },
3030 }
3131 ```
3232
@@ -34,19 +34,19 @@ For local development, use `dir` instead:
3434
3535 ```lua
3636 return {
37- dir = "~/src/vim-pi-complete",
38- cmd = { "Pi" },
37+ dir = "~/src/vim-ai-complete",
38+ cmd = { "Ai" },
3939 }
4040 ```
4141
42-Note: when lazy-loading with `cmd = { "Pi" }`, the lowercase `:pi` abbreviation is only available after the plugin has loaded. Use `:Pi` to trigger loading, or define the abbreviation in `init`:
42+Note: when lazy-loading with `cmd = { "Ai" }`, the lowercase `:ai` abbreviation is only available after the plugin has loaded. Use `:Ai` to trigger loading, or define the abbreviation in `init`:
4343
4444 ```lua
4545 return {
46- "sacenox/vim-pi-complete",
47- cmd = { "Pi" },
46+ "sacenox/vim-ai-complete",
47+ cmd = { "Ai" },
4848 init = function()
49- vim.cmd([[cabbrev pi Pi]])
49+ vim.cmd([[cabbrev ai Ai]])
5050 end,
5151 }
5252 ```
@@ -57,7 +57,7 @@ Without a plugin manager:
5757
5858 ```bash
5959 cd ~/.config/nvim/pack/local/start
60-git clone https://github.com/sacenox/vim-pi-complete.git
60+git clone https://github.com/sacenox/vim-ai-complete.git
6161 ```
6262
6363 Then restart Neovim.