mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 09:48:42 +02:00
31 lines
734 B
Nix
31 lines
734 B
Nix
|
{
|
||
|
lib,
|
||
|
helpers,
|
||
|
config,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
with lib;
|
||
|
helpers.neovim-plugin.mkNeovimPlugin config {
|
||
|
name = "headlines";
|
||
|
originalName = "headlines.nvim";
|
||
|
defaultPackage = pkgs.vimPlugins.headlines-nvim;
|
||
|
|
||
|
maintainers = [maintainers.GaetanLepage];
|
||
|
|
||
|
settingsExample = {
|
||
|
org.headline_highlights = false;
|
||
|
norg = {
|
||
|
headline_highlights = ["Headline"];
|
||
|
codeblock_highlight = false;
|
||
|
};
|
||
|
markdown.headline_highlights = ["Headline1"];
|
||
|
};
|
||
|
|
||
|
extraConfig = cfg: {
|
||
|
warnings = optional (!config.plugins.treesitter.enable) ''
|
||
|
Nixvim (plugins.headlines): headlines requires `plugins.treesitter` to be enabled with the relevant grammars installed.
|
||
|
'';
|
||
|
};
|
||
|
}
|