nix-community.nixvim/plugins/utils/goyo.nix

37 lines
701 B
Nix
Raw Normal View History

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