nix-community.nixvim/plugins/utils/goyo.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
888 B
Nix
Raw Normal View History

{
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"
]
)
];
2021-02-11 15:35:38 +00:00
settingsOptions = {
width = helpers.mkNullOrOption types.ints.unsigned "width";
2021-02-11 15:35:38 +00:00
height = helpers.mkNullOrOption types.ints.unsigned "height";
2021-02-11 15:35:38 +00:00
linenr = helpers.defaultNullOpts.mkBool false ''
Show line numbers when in Goyo mode.
'';
};
}