feat(nvf): add avante-nvim ai assistant plugin
This commit is contained in:
parent
65e169e88b
commit
eab372bd11
2 changed files with 23 additions and 0 deletions
22
homes/x86_64-linux/rafiq/cli/editor/_nvf/assistant.nix
Normal file
22
homes/x86_64-linux/rafiq/cli/editor/_nvf/assistant.nix
Normal 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>";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -26,6 +26,7 @@ in
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
git.gitsigns.enable = false;
|
git.gitsigns.enable = false;
|
||||||
autopairs.nvim-autopairs.enable = true;
|
autopairs.nvim-autopairs.enable = true;
|
||||||
|
assistant = import ./_nvf/assistant.nix;
|
||||||
autocomplete = import ./_nvf/autocomplete.nix { inherit lib; };
|
autocomplete = import ./_nvf/autocomplete.nix { inherit lib; };
|
||||||
binds = import ./_nvf/binds.nix;
|
binds = import ./_nvf/binds.nix;
|
||||||
clipboard = import ./_nvf/clipboard.nix;
|
clipboard = import ./_nvf/clipboard.nix;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue