2023-02-20 11:42:13 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
} @ attrs: let
|
|
|
|
helpers = import ../helpers.nix {inherit lib;};
|
|
|
|
in
|
|
|
|
with helpers;
|
|
|
|
with lib;
|
|
|
|
mkPlugin attrs {
|
|
|
|
name = "goyo";
|
|
|
|
description = "Enable goyo.vim";
|
|
|
|
package = pkgs.vimPlugins.goyo-vim;
|
2023-03-24 08:18:45 +01:00
|
|
|
globalPrefix = "goyo_";
|
2021-02-11 15:35:38 +00:00
|
|
|
|
2023-02-20 11:42:13 +01:00
|
|
|
options = {
|
|
|
|
width = mkDefaultOpt {
|
|
|
|
description = "Width";
|
2023-03-24 08:18:45 +01:00
|
|
|
global = "width";
|
2023-02-20 11:42:13 +01:00
|
|
|
type = types.int;
|
|
|
|
};
|
2021-02-11 15:35:38 +00:00
|
|
|
|
2023-02-20 11:42:13 +01:00
|
|
|
height = mkDefaultOpt {
|
|
|
|
description = "Height";
|
2023-03-24 08:18:45 +01:00
|
|
|
global = "height";
|
2023-02-20 11:42:13 +01:00
|
|
|
type = types.int;
|
|
|
|
};
|
2021-02-11 15:35:38 +00:00
|
|
|
|
2023-02-20 11:42:13 +01:00
|
|
|
showLineNumbers = mkDefaultOpt {
|
|
|
|
description = "Show line numbers when in Goyo mode";
|
2023-03-24 08:18:45 +01:00
|
|
|
global = "linenr";
|
2023-02-20 11:42:13 +01:00
|
|
|
type = types.bool;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|