nix-community.nixvim/plugins/ui/headlines.nix

31 lines
702 B
Nix
Raw Normal View History

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