mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-02 21:34:33 +02:00
helpers: add globalPrefix to mkPlugin (#284)
This commit is contained in:
parent
2550c919a5
commit
58b6c74e2f
5 changed files with 48 additions and 42 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue