Skip to content

Commit

Permalink
feat: update ai.nvim dependency and improve doc
Browse files Browse the repository at this point in the history
- Updated ai.nvim dependency version to >=1.3.0 in README.md and doc/dante.txt.
- Improved documentation in doc/dante.txt:
  - Removed recommendation to use a plugin manager.
  - Added `layout` option description.
  - Removed `verbose` option description.
  • Loading branch information
S1M0N38 committed Sep 26, 2024
1 parent bfc013c commit 5021c1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ You can install dante.nvim using your preferred plugin manager. Here's an exampl
},
},
dependencies = {
{ "S1M0N38/ai.nvim", version = ">=1.1.0" },
{ "S1M0N38/ai.nvim", version = ">=1.3.0" },
}
}
```
Expand Down
12 changes: 7 additions & 5 deletions doc/dante.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Table of contents:
================================================================================
SETUP *dante-setup*

It's highly recommended to use a plugin manager to install dante.nvim. For
example, using `lazy.nvim`:
It's recommended to use a plugin manager to install dante.nvim. For example,
using `lazy.nvim`:

>lua
{
Expand All @@ -32,7 +32,7 @@ example, using `lazy.nvim`:
}
}
dependencies = {
{ "S1M0N38/ai.nvim", version=">=1.1.0" },
{ "S1M0N38/ai.nvim", version = ">=1.3.0" },
}
}
<
Expand Down Expand Up @@ -67,9 +67,8 @@ dante.setup({opts}) ~

>lua
{
-- Enable verbose notifications
verbose = false,

layout = "right",
presets = {
["default"] = {
client = {
Expand Down Expand Up @@ -109,6 +108,9 @@ dante.setup({opts}) ~
- `verbose`: If `true`, the plugin will notify you with extra information on
completion.

- `layout`: In which direction open the new window for the generated text.
Can be "right", "left", "above" or "below".

- `presets`: A list of presets. The preset `default` is the only preset
available at the moment. You can craft various presets for various
situations (e.g., just fix typos, refine an email, add emojis to a readme,
Expand Down

0 comments on commit 5021c1d

Please sign in to comment.