mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-05 14:54:33 +02:00
We used to only think of it as the plugin repo's name, but we have been needing to use it for the name of the plugin's packpath location.
56 lines
1.3 KiB
Nix
56 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib.nixvim) defaultNullOpts;
|
|
inherit (lib) types;
|
|
in
|
|
lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
|
name = "helpview";
|
|
packPathName = "helpview.nvim";
|
|
package = "helpview-nvim";
|
|
|
|
maintainers = [ lib.maintainers.khaneliman ];
|
|
|
|
description = ''
|
|
Decorations for vimdoc/help files in Neovim
|
|
|
|
Supports a vast amount of rendering customization.
|
|
Refer to the plugin's [documentation](https://github.com/OXY2DEV/helpview.nvim/wiki) for more details.
|
|
'';
|
|
|
|
settingsOptions = {
|
|
buf_ignore = defaultNullOpts.mkListOf types.str [ ] ''
|
|
Buftypes to disable helpview-nvim.
|
|
'';
|
|
|
|
mode =
|
|
defaultNullOpts.mkListOf types.str
|
|
[
|
|
"n"
|
|
"c"
|
|
]
|
|
''
|
|
Modes where preview is enabled.
|
|
'';
|
|
|
|
hybrid_modes = defaultNullOpts.mkListOf types.str null ''
|
|
Modes where hybrid mode is enabled.
|
|
'';
|
|
|
|
callback = {
|
|
on_enable = defaultNullOpts.mkLuaFn null ''
|
|
Action to perform when markview is enabled.
|
|
'';
|
|
|
|
on_disable = defaultNullOpts.mkLuaFn null ''
|
|
Action to perform when markview is disabled.
|
|
'';
|
|
|
|
on_mode_change = defaultNullOpts.mkLuaFn null ''
|
|
Action to perform when mode is changed, while the plugin is enabled.
|
|
'';
|
|
};
|
|
};
|
|
}
|