mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
33 lines
705 B
Nix
33 lines
705 B
Nix
{
|
|
lib,
|
|
helpers,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
lib.nixvim.plugins.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 = lib.nixvim.mkWarnings "plugins.headlines" {
|
|
when = !config.plugins.treesitter.enable;
|
|
|
|
message = ''
|
|
headlines requires `plugins.treesitter` to be enabled with the relevant grammars installed.
|
|
'';
|
|
};
|
|
};
|
|
}
|