nix-community.nixvim/plugins/utils/goyo.nix
Gabriel Arazas 6b0f03e4a1 plugins: clean up module descriptions
Only for the `enable` option though.
2024-01-26 15:43:47 +01:00

35 lines
753 B
Nix

{
lib,
pkgs,
...
} @ attrs: let
helpers = import ../helpers.nix {inherit lib;};
in
with helpers.vim-plugin;
with lib;
mkVimPlugin attrs {
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;
};
};
}