mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
36 lines
694 B
Nix
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.
|
|
'';
|
|
};
|
|
}
|