mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +02:00
plugins/goyo: switch to settings option
This commit is contained in:
parent
f9280a6865
commit
ec687c5ade
3 changed files with 25 additions and 20 deletions
|
@ -12,25 +12,28 @@ with lib;
|
|||
originalName = "goyo.vim";
|
||||
defaultPackage = pkgs.vimPlugins.goyo-vim;
|
||||
globalPrefix = "goyo_";
|
||||
|
||||
# TODO introduced 2024-03-01: remove 2024-05-01
|
||||
deprecateExtraConfig = true;
|
||||
optionsRenamedToSettings = [
|
||||
"width"
|
||||
"height"
|
||||
];
|
||||
imports = [
|
||||
(
|
||||
mkRenamedOptionModule
|
||||
["plugins" "goyo" "showLineNumbers"]
|
||||
["plugins" "goyo" "settings" "linenr"]
|
||||
)
|
||||
];
|
||||
|
||||
options = {
|
||||
width = mkDefaultOpt {
|
||||
description = "Width";
|
||||
global = "width";
|
||||
type = types.int;
|
||||
};
|
||||
settingsOptions = {
|
||||
width = helpers.mkNullOrOption types.ints.unsigned "width";
|
||||
|
||||
height = mkDefaultOpt {
|
||||
description = "Height";
|
||||
global = "height";
|
||||
type = types.int;
|
||||
};
|
||||
height = helpers.mkNullOrOption types.ints.unsigned "height";
|
||||
|
||||
showLineNumbers = mkDefaultOpt {
|
||||
description = "Show line numbers when in Goyo mode";
|
||||
global = "linenr";
|
||||
type = types.bool;
|
||||
};
|
||||
linenr = helpers.defaultNullOpts.mkBool false ''
|
||||
Show line numbers when in Goyo mode.
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue