Skip to content

Commit

Permalink
docs: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
olimorris committed Feb 17, 2024
1 parent 8642549 commit 5c26894
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,9 @@ The plugin allows you to utilise the OpenAI APIs to create inline code in Neovim

```
:CodeCompanion create a table of 5 fruits
```
```
:'<,'>CodeCompanion refactor the code to make it more concise
:'<,'>CodeCompanion can you fix this lsp warning? "unpack" is the culprit
```

The command can detect if you've made a visual selection and send any code as context to the API, alongside the filetype of the buffer.
Expand Down
4 changes: 3 additions & 1 deletion doc/codecompanion.txt
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,10 @@ Neovim. Run the `:CodeCompanion` command followed by a prompt. For example:

>
:CodeCompanion create a table of 5 fruits
<

>
:'<,'>CodeCompanion refactor the code to make it more concise
:'<,'>CodeCompanion can you fix this lsp warning? "unpack" is the culprit
<

The command can detect if you’ve made a visual selection and send any code as
Expand Down

0 comments on commit 5c26894

Please sign in to comment.