mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
49 lines
888 B
Nix
49 lines
888 B
Nix
{
|
|
lib,
|
|
config,
|
|
helpers,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with helpers.vim-plugin;
|
|
with lib;
|
|
mkVimPlugin config {
|
|
name = "goyo";
|
|
originalName = "goyo.vim";
|
|
defaultPackage = pkgs.vimPlugins.goyo-vim;
|
|
globalPrefix = "goyo_";
|
|
|
|
maintainers = [ maintainers.GaetanLepage ];
|
|
|
|
# TODO introduced 2024-03-01: remove 2024-05-01
|
|
deprecateExtraConfig = true;
|
|
optionsRenamedToSettings = [
|
|
"width"
|
|
"height"
|
|
];
|
|
imports = [
|
|
(mkRenamedOptionModule
|
|
[
|
|
"plugins"
|
|
"goyo"
|
|
"showLineNumbers"
|
|
]
|
|
[
|
|
"plugins"
|
|
"goyo"
|
|
"settings"
|
|
"linenr"
|
|
]
|
|
)
|
|
];
|
|
|
|
settingsOptions = {
|
|
width = helpers.mkNullOrOption types.ints.unsigned "width";
|
|
|
|
height = helpers.mkNullOrOption types.ints.unsigned "height";
|
|
|
|
linenr = helpers.defaultNullOpts.mkBool false ''
|
|
Show line numbers when in Goyo mode.
|
|
'';
|
|
};
|
|
}
|