mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 18:24:35 +02:00
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
37 lines
746 B
Nix
37 lines
746 B
Nix
{
|
|
lib,
|
|
helpers,
|
|
...
|
|
}:
|
|
with lib.nixvim.plugins;
|
|
with lib;
|
|
mkVimPlugin {
|
|
name = "goyo";
|
|
packPathName = "goyo.vim";
|
|
package = "goyo-vim";
|
|
globalPrefix = "goyo_";
|
|
description = "Distraction-free writing in Vim.";
|
|
|
|
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.
|
|
'';
|
|
};
|
|
}
|