1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-09 10:31:08 +01:00
nixvim/plugins/by-name/goyo/default.nix
saygo-png c4b27080a6 treewide: infer packPathName menial work
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-09-27 23:49:59 +00:00

36 lines
717 B
Nix

{
lib,
helpers,
...
}:
with lib.nixvim.plugins;
with lib;
mkVimPlugin {
name = "goyo";
package = "goyo-vim";
globalPrefix = "goyo_";
description = "Distraction-free writing in Vim.";
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.
'';
};
}