1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-16 15:32:48 +01:00
nixvim/plugins/by-name/headlines/default.nix
Matt Sturgeon fe059cd395 flake: add nixf-diagnose to treefmt config
Checks nixd's diagnostic lints using libnixf.
2025-10-01 00:42:40 +00:00

27 lines
762 B
Nix

{ lib, config, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "headlines";
package = "headlines-nvim";
description = "A plugin that adds horizontal highlights for text filetypes, like markdown, orgmode, and neorg.";
maintainers = [ lib.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.
'';
};
};
}