helpers: add globalPrefix to mkPlugin (#284)

This commit is contained in:
Gaétan Lepage 2023-03-24 08:18:45 +01:00 committed by GitHub
parent 2550c919a5
commit 58b6c74e2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 42 deletions

View file

@ -11,23 +11,24 @@ in
name = "goyo";
description = "Enable goyo.vim";
package = pkgs.vimPlugins.goyo-vim;
globalPrefix = "goyo_";
options = {
width = mkDefaultOpt {
description = "Width";
global = "goyo_width";
global = "width";
type = types.int;
};
height = mkDefaultOpt {
description = "Height";
global = "goyo_height";
global = "height";
type = types.int;
};
showLineNumbers = mkDefaultOpt {
description = "Show line numbers when in Goyo mode";
global = "goyo_linenr";
global = "linenr";
type = types.bool;
};
};