mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-10 04:46:04 +02:00
helpers/vim-plugin/mkVimPlugin: refactor
This commit is contained in:
parent
66c069c48d
commit
3c174e874c
20 changed files with 739 additions and 744 deletions
|
@ -1,35 +1,35 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
helpers,
|
||||
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_";
|
||||
}:
|
||||
with helpers.vim-plugin;
|
||||
with lib;
|
||||
mkVimPlugin config {
|
||||
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;
|
||||
};
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue