feat(nvf): add avante-nvim ai assistant plugin

This commit is contained in:
Mohammad Rafiq 2025-06-22 23:47:49 +08:00
parent 65e169e88b
commit eab372bd11
No known key found for this signature in database
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,22 @@
{
avante-nvim = {
enable = true;
setupOpts = {
provider = "gemini";
auto_suggestions_provider = "gemini";
auto_suggestions = true;
windows.ask.floating = true;
input = {
provider = "snacks";
provider_opts.title = "Avante Input";
provider_opts.icon = " ";
};
mappings.suggestion = {
accept = "<M-C-L>";
next = "<M-C-K>";
prev = "<M-C-J>";
dismiss = "<M-C-H>";
};
};
};
}

View file

@ -26,6 +26,7 @@ in
git.enable = true;
git.gitsigns.enable = false;
autopairs.nvim-autopairs.enable = true;
assistant = import ./_nvf/assistant.nix;
autocomplete = import ./_nvf/autocomplete.nix { inherit lib; };
binds = import ./_nvf/binds.nix;
clipboard = import ./_nvf/clipboard.nix;