nix-community.nixvim/plugins/by-name/headlines/default.nix
osbm a41559f093
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
treewide: add plugin descriptions
2025-06-24 06:10:11 +00:00

34 lines
820 B
Nix

{
lib,
helpers,
config,
...
}:
with lib;
lib.nixvim.plugins.mkNeovimPlugin {
name = "headlines";
packPathName = "headlines.nvim";
package = "headlines-nvim";
description = "A plugin that adds horizontal highlights for text filetypes, like markdown, orgmode, and neorg.";
maintainers = [ maintainers.GaetanLepage ];
settingsExample = {
org.headline_highlights = false;
norg = {
headline_highlights = [ "Headline" ];
codeblock_highlight = false;
};
markdown.headline_highlights = [ "Headline1" ];
};
extraConfig = {
warnings = lib.nixvim.mkWarnings "plugins.headlines" {
when = !config.plugins.treesitter.enable;
message = ''
headlines requires `plugins.treesitter` to be enabled with the relevant grammars installed.
'';
};
};
}