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-09 14:21:22 +01:00
|
|
|
package = pkgs.vimPlugins.goyo-vim;
|
|
|
|
globalPrefix = "goyo_";
|
2024-02-12 12:22:23 +01:00
|
|
|
addExtraConfigRenameWarning = true;
|
2021-02-11 15:35:38 +00:00
|
|
|
|
2024-02-09 14:21:22 +01:00
|
|
|
options = {
|
|
|
|
width = mkDefaultOpt {
|
|
|
|
description = "Width";
|
|
|
|
global = "width";
|
|
|
|
type = types.int;
|
|
|
|
};
|
2021-02-11 15:35:38 +00:00
|
|
|
|
2024-02-09 14:21:22 +01:00
|
|
|
height = mkDefaultOpt {
|
|
|
|
description = "Height";
|
|
|
|
global = "height";
|
|
|
|
type = types.int;
|
|
|
|
};
|
2021-02-11 15:35:38 +00:00
|
|
|
|
2024-02-09 14:21:22 +01:00
|
|
|
showLineNumbers = mkDefaultOpt {
|
|
|
|
description = "Show line numbers when in Goyo mode";
|
|
|
|
global = "linenr";
|
|
|
|
type = types.bool;
|
2023-02-20 11:42:13 +01:00
|
|
|
};
|
2024-02-09 14:21:22 +01:00
|
|
|
};
|
|
|
|
}
|