nix-community.nixvim/plugins/by-name/goyo/default.nix

37 lines
694 B
Nix
Raw Normal View History

{
lib,
helpers,
...
}:
2024-12-22 09:58:27 +00:00
with lib.nixvim.plugins;
with lib;
mkVimPlugin {
2024-05-05 19:39:35 +02:00
name = "goyo";
packPathName = "goyo.vim";
package = "goyo-vim";
2024-05-05 19:39:35 +02:00
globalPrefix = "goyo_";
2024-05-05 19:39:35 +02:00
maintainers = [ maintainers.GaetanLepage ];
2024-05-05 19:39:35 +02:00
# TODO introduced 2024-03-01: remove 2024-05-01
deprecateExtraConfig = true;
optionsRenamedToSettings = [
"width"
"height"
{
old = "showLineNumbers";
new = "linenr";
}
2024-05-05 19:39:35 +02:00
];
2021-02-11 15:35:38 +00:00
2024-05-05 19:39:35 +02:00
settingsOptions = {
width = helpers.mkNullOrOption types.ints.unsigned "width";
2021-02-11 15:35:38 +00:00
2024-05-05 19:39:35 +02:00
height = helpers.mkNullOrOption types.ints.unsigned "height";
2021-02-11 15:35:38 +00:00
2024-09-08 13:52:18 +01:00
linenr = helpers.defaultNullOpts.mkFlagInt 0 ''
2024-05-05 19:39:35 +02:00
Show line numbers when in Goyo mode.
'';
};
}