mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 18:31:35 +00:00
assistant: add avante.nvim plugin
This commit is contained in:
parent
4045c458dc
commit
72c5c7f634
6 changed files with 430 additions and 0 deletions
44
modules/plugins/assistant/avante/config.nix
Normal file
44
modules/plugins/assistant/avante/config.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
|
||||
cfg = config.vim.assistant.avante-nvim;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
startPlugins = [
|
||||
"plenary-nvim"
|
||||
"dressing-nvim"
|
||||
"nui-nvim"
|
||||
];
|
||||
|
||||
lazy.plugins = {
|
||||
"avante.nvim" = with pkgs.vimPlugins; {
|
||||
package = avante-nvim;
|
||||
setupModule = "avante";
|
||||
inherit (cfg) setupOpts;
|
||||
after =
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
''
|
||||
vim.opt.laststatus = 3
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
treesitter.enable = true;
|
||||
|
||||
autocomplete.nvim-cmp = {
|
||||
sources = {"avante.nvim" = "[avante]";};
|
||||
sourcePlugins = ["avante-nvim"];
|
||||
};
|
||||
|
||||
languages.markdown.extensions.render-markdown-nvim.setupOpts.file_types = lib.mkAfter ["Avante"];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue