nix-community.nixvim/plugins/by-name/headlines/default.nix
Austin Horstman a7012e7864
treewide: originalName -> packPathName
We used to only think of it as the plugin repo's name, but we have been
needing to use it for the name of the plugin's packpath location.
2024-12-13 21:29:00 -06:00

29 lines
661 B
Nix

{
lib,
helpers,
config,
...
}:
with lib;
helpers.neovim-plugin.mkNeovimPlugin {
name = "headlines";
packPathName = "headlines.nvim";
package = "headlines-nvim";
maintainers = [ maintainers.GaetanLepage ];
settingsExample = {
org.headline_highlights = false;
norg = {
headline_highlights = [ "Headline" ];
codeblock_highlight = false;
};
markdown.headline_highlights = [ "Headline1" ];
};
extraConfig = {
warnings = optional (!config.plugins.treesitter.enable) ''
Nixvim (plugins.headlines): headlines requires `plugins.treesitter` to be enabled with the relevant grammars installed.
'';
};
}