plugins/nvim-bacon: init (#1080)

This commit is contained in:
Alison Jenkins 2024-02-27 12:45:47 +00:00 committed by GitHub
parent 278dfe6215
commit 7eb74fecd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 43 additions and 0 deletions

View file

@ -111,6 +111,7 @@
./utils/auto-save.nix
./utils/auto-session.nix
./utils/autoclose.nix
./utils/bacon.nix
./utils/better-escape.nix
./utils/clipboard-image.nix
./utils/comment-nvim.nix

25
plugins/utils/bacon.nix Normal file
View file

@ -0,0 +1,25 @@
{
helpers,
pkgs,
config,
...
}:
helpers.neovim-plugin.mkNeovimPlugin config
{
name = "bacon";
defaultPackage = pkgs.vimPlugins.nvim-bacon;
maintainers = [helpers.maintainers.alisonjenkins];
settingsOptions = {
quickfix = {
enabled = helpers.defaultNullOpts.mkBool true "true to populate the quickfix list with bacon errors and warnings.";
event_trigger = helpers.defaultNullOpts.mkBool true "triggers the QuickFixCmdPost event after populating the quickfix list";
};
};
settingsExample = {
quickfix = {
enabled = false;
event_trigger = true;
};
};
}

View file

@ -0,0 +1,17 @@
{
empty = {
plugins.bacon.enable = true;
};
defaults = {
plugins.bacon = {
enable = true;
settings = {
quickfix = {
enabled = true;
event_trigger = true;
};
};
};
};
}