mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
29 lines
658 B
Nix
29 lines
658 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 = optional (!config.plugins.treesitter.enable) ''
|
|
Nixvim (plugins.headlines): headlines requires `plugins.treesitter` to be enabled with the relevant grammars installed.
|
|
'';
|
|
};
|
|
}
|