nix-community.nixvim/plugins/utils/goyo.nix
2024-02-10 17:53:41 +01:00

35 lines
660 B
Nix

{
lib,
config,
helpers,
pkgs,
...
}:
with helpers.vim-plugin;
with lib;
mkVimPlugin config {
name = "goyo";
description = "goyo.vim";
package = pkgs.vimPlugins.goyo-vim;
globalPrefix = "goyo_";
options = {
width = mkDefaultOpt {
description = "Width";
global = "width";
type = types.int;
};
height = mkDefaultOpt {
description = "Height";
global = "height";
type = types.int;
};
showLineNumbers = mkDefaultOpt {
description = "Show line numbers when in Goyo mode";
global = "linenr";
type = types.bool;
};
};
}