mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-27 02:59:00 +02:00
plugins/headlines: init
This commit is contained in:
parent
6d1ef5864b
commit
0c16f59202
3 changed files with 235 additions and 0 deletions
30
plugins/ui/headlines.nix
Normal file
30
plugins/ui/headlines.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
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.
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue