nix-community.nixvim/plugins/by-name/goyo/default.nix
2024-12-22 10:04:17 +00:00

36 lines
694 B
Nix

{
lib,
helpers,
...
}:
with lib.nixvim.plugins;
with lib;
mkVimPlugin {
name = "goyo";
packPathName = "goyo.vim";
package = "goyo-vim";
globalPrefix = "goyo_";
maintainers = [ maintainers.GaetanLepage ];
# TODO introduced 2024-03-01: remove 2024-05-01
deprecateExtraConfig = true;
optionsRenamedToSettings = [
"width"
"height"
{
old = "showLineNumbers";
new = "linenr";
}
];
settingsOptions = {
width = helpers.mkNullOrOption types.ints.unsigned "width";
height = helpers.mkNullOrOption types.ints.unsigned "height";
linenr = helpers.defaultNullOpts.mkFlagInt 0 ''
Show line numbers when in Goyo mode.
'';
};
}