nix-community.nixvim/plugins/by-name/headlines/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
658 B
Nix
Raw Normal View History

2024-03-28 14:16:06 +01:00
{
lib,
helpers,
config,
...
}:
with lib;
2024-12-22 09:58:27 +00:00
lib.nixvim.plugins.mkNeovimPlugin {
2024-03-28 14:16:06 +01:00
name = "headlines";
packPathName = "headlines.nvim";
package = "headlines-nvim";
2024-03-28 14:16:06 +01:00
maintainers = [ maintainers.GaetanLepage ];
settingsExample = {
org.headline_highlights = false;
norg = {
headline_highlights = [ "Headline" ];
codeblock_highlight = false;
};
markdown.headline_highlights = [ "Headline1" ];
2024-05-05 19:39:35 +02:00
};
2024-03-28 14:16:06 +01:00
extraConfig = {
2024-03-28 14:16:06 +01:00
warnings = optional (!config.plugins.treesitter.enable) ''
Nixvim (plugins.headlines): headlines requires `plugins.treesitter` to be enabled with the relevant grammars installed.
'';
};
}