2023-02-20 11:42:13 +01:00
|
|
|
{
|
|
|
|
lib,
|
2024-02-09 14:21:22 +01:00
|
|
|
config,
|
|
|
|
helpers,
|
2023-02-20 11:42:13 +01:00
|
|
|
pkgs,
|
|
|
|
...
|
2024-02-09 14:21:22 +01:00
|
|
|
}:
|
|
|
|
with helpers.vim-plugin;
|
|
|
|
with lib;
|
|
|
|
mkVimPlugin config {
|
|
|
|
name = "goyo";
|
2024-02-13 23:25:13 +01:00
|
|
|
originalName = "goyo.vim";
|
2024-02-15 09:51:43 +01:00
|
|
|
defaultPackage = pkgs.vimPlugins.goyo-vim;
|
2024-02-09 14:21:22 +01:00
|
|
|
globalPrefix = "goyo_";
|
2024-03-01 14:10:59 +01:00
|
|
|
|
2024-03-04 09:35:28 +01:00
|
|
|
maintainers = [ maintainers.GaetanLepage ];
|
|
|
|
|
2024-03-01 14:10:59 +01:00
|
|
|
# TODO introduced 2024-03-01: remove 2024-05-01
|
2024-02-19 10:19:39 +01:00
|
|
|
deprecateExtraConfig = true;
|
2024-03-01 14:10:59 +01:00
|
|
|
optionsRenamedToSettings = [
|
|
|
|
"width"
|
|
|
|
"height"
|
|
|
|
];
|
|
|
|
imports = [
|
|
|
|
(mkRenamedOptionModule
|
|
|
|
[
|
|
|
|
"plugins"
|
|
|
|
"goyo"
|
|
|
|
"showLineNumbers"
|
|
|
|
]
|
|
|
|
[
|
|
|
|
"plugins"
|
|
|
|
"goyo"
|
|
|
|
"settings"
|
|
|
|
"linenr"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
];
|
2021-02-11 15:35:38 +00:00
|
|
|
|
2024-03-01 14:10:59 +01:00
|
|
|
settingsOptions = {
|
|
|
|
width = helpers.mkNullOrOption types.ints.unsigned "width";
|
2021-02-11 15:35:38 +00:00
|
|
|
|
2024-03-01 14:10:59 +01:00
|
|
|
height = helpers.mkNullOrOption types.ints.unsigned "height";
|
2021-02-11 15:35:38 +00:00
|
|
|
|
2024-03-01 14:10:59 +01:00
|
|
|
linenr = helpers.defaultNullOpts.mkBool false ''
|
|
|
|
Show line numbers when in Goyo mode.
|
|
|
|
'';
|
2024-02-09 14:21:22 +01:00
|
|
|
};
|
|
|
|
}
|