Skip to content

Commit

Permalink
✨ (plugin): avante
Browse files Browse the repository at this point in the history
we already have cursor at home
  • Loading branch information
elythh committed Dec 4, 2024
1 parent 0a69eef commit 4f62914
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ If you add a new configuration file, remember to add it to the

- **[colorscheme/](../config/plug/colorscheme):** Theme configuration. Current one is [paradise](https://github.com/paradise-theme/paradise)
- **[completion/](../config/plug/completion)**
- **[avante](../config/plug/completion/avante.nix):** Cursor AI at home
- **[codecompanion](../config/plug/completion/codecompanion.nix):** Zed AI like
- **[copilot-cmp](../config/plug/completion/copilot-cmp.nix):** Completion support for GitHub copilot
- **[lspkind](../config/plug/completion/lspkind.nix):** vscode-like pictograms for neovim lsp completion items
Expand Down
2 changes: 1 addition & 1 deletion config/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

./plug/colorscheme/colorscheme.nix

./plug/completion/blink.nix
./plug/completion/avante.nix
./plug/completion/cmp.nix
./plug/completion/copilot-cmp.nix
./plug/completion/codecompanion.nix
Expand Down
56 changes: 56 additions & 0 deletions config/plug/completion/avante.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{

plugins.avante = {
enable = false;
settings = {
claude = {
endpoint = "https://api.anthropic.com";
max_tokens = 4096;
model = "claude-3-5-sonnet-20240620";
temperature = 0;
};
diff = {
autojump = true;
debug = false;
list_opener = "copen";
};
highlights = {
diff = {
current = "DiffText";
incoming = "DiffAdd";
};
};
hints = {
enabled = true;
};
mappings = {
diff = {
both = "cb";
next = "]x";
none = "c0";
ours = "co";
prev = "[x";
theirs = "tc";
};
};
provider = "claude";
windows = {
sidebar_header = {
align = "center";
rounded = true;
};
width = 30;
wrap = true;
};
};
};
plugins.render-markdown = {
enable = true;
settings = {
file_types = [
"markdown"
"Avante"
];
};
};
}

0 comments on commit 4f62914

Please sign in to comment.