mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
35 lines
746 B
Nix
35 lines
746 B
Nix
{
|
|
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;
|
|
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;
|
|
};
|
|
};
|
|
}
|