nix-community.nixvim/plugins/by-name/headlines/default.nix
Matt Sturgeon 7b94afceaf
plugins: cleanup most extraConfig args
- Remove `cfg` where it is unused.
- Use `opts` where necessary.
2024-11-20 20:55:16 +00:00

29 lines
661 B
Nix

{
lib,
helpers,
config,
...
}:
with lib;
helpers.neovim-plugin.mkNeovimPlugin {
name = "headlines";
originalName = "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.
'';
};
}