diff --git a/plugins/by-name/aider/default.nix b/plugins/by-name/aider/default.nix new file mode 100644 index 00000000..fccedc4a --- /dev/null +++ b/plugins/by-name/aider/default.nix @@ -0,0 +1,31 @@ +{ lib, ... }: +lib.nixvim.plugins.mkNeovimPlugin { + name = "aider"; + package = "aider-nvim"; + packPathName = "aider.nvim"; + + maintainers = with lib.maintainers; [ + c4patino + ]; + + settingsExample = { + auto_manage_context = false; + default_bindings = false; + debug = true; + vim = true; + ignore_buffers = [ ]; + border = { + style = [ + "╭" + "─" + "╮" + "│" + "╯" + "─" + "╰" + "│" + ]; + color = "#fab387"; + }; + }; +} diff --git a/tests/test-sources/plugins/by-name/aider/default.nix b/tests/test-sources/plugins/by-name/aider/default.nix new file mode 100644 index 00000000..5a9b30b8 --- /dev/null +++ b/tests/test-sources/plugins/by-name/aider/default.nix @@ -0,0 +1,49 @@ +{ + empty = { + plugins.aider.enable = true; + }; + + defaults = { + plugins.aider = { + enable = true; + settings = { + auto_manage_context = true; + default_bindings = true; + debug = false; + ignore_buffers = [ + "^term://" + "NeogitConsole" + "NvimTree_" + "neo-tree filesystem" + ]; + }; + }; + }; + + example = { + plugins.aider = { + enable = true; + + settings = { + auto_manage_context = false; + default_bindings = false; + debug = true; + vim = true; + ignore_buffers = [ ]; + border = { + style = [ + "╭" + "─" + "╮" + "│" + "╯" + "─" + "╰" + "│" + ]; + color = "#fab387"; + }; + }; + }; + }; +}