mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 09:18:38 +02:00
30 lines
640 B
Nix
30 lines
640 B
Nix
|
{ lib, pkgs, ... }@attrs:
|
||
|
let
|
||
|
helpers = import ../helpers.nix { lib = lib; };
|
||
|
in with helpers; with lib;
|
||
|
mkPlugin attrs {
|
||
|
name = "goyo";
|
||
|
description = "Enable goyo.vim";
|
||
|
extraPlugins = [ pkgs.vimPlugins.goyo-vim ];
|
||
|
|
||
|
options = {
|
||
|
width = mkDefaultOpt {
|
||
|
description = "Width";
|
||
|
global = "goyo_width";
|
||
|
type = types.int;
|
||
|
};
|
||
|
|
||
|
height = mkDefaultOpt {
|
||
|
description = "Height";
|
||
|
global = "goyo_height";
|
||
|
type = types.int;
|
||
|
};
|
||
|
|
||
|
showLineNumbers = mkDefaultOpt {
|
||
|
description = "Show line numbers when in Goyo mode";
|
||
|
global = "goyo_linenr";
|
||
|
type = types.bool;
|
||
|
};
|
||
|
};
|
||
|
}
|