mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-25 13:14:37 +02:00
plugins/utils: move to by-name
This commit is contained in:
parent
faff32b9f1
commit
52f125679f
195 changed files with 2 additions and 102 deletions
|
@ -1,47 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
helpers,
|
||||
...
|
||||
}:
|
||||
with helpers.vim-plugin;
|
||||
with lib;
|
||||
mkVimPlugin {
|
||||
name = "goyo";
|
||||
originalName = "goyo.vim";
|
||||
package = "goyo-vim";
|
||||
globalPrefix = "goyo_";
|
||||
|
||||
maintainers = [ maintainers.GaetanLepage ];
|
||||
|
||||
# TODO introduced 2024-03-01: remove 2024-05-01
|
||||
deprecateExtraConfig = true;
|
||||
optionsRenamedToSettings = [
|
||||
"width"
|
||||
"height"
|
||||
];
|
||||
imports = [
|
||||
(mkRenamedOptionModule
|
||||
[
|
||||
"plugins"
|
||||
"goyo"
|
||||
"showLineNumbers"
|
||||
]
|
||||
[
|
||||
"plugins"
|
||||
"goyo"
|
||||
"settings"
|
||||
"linenr"
|
||||
]
|
||||
)
|
||||
];
|
||||
|
||||
settingsOptions = {
|
||||
width = helpers.mkNullOrOption types.ints.unsigned "width";
|
||||
|
||||
height = helpers.mkNullOrOption types.ints.unsigned "height";
|
||||
|
||||
linenr = helpers.defaultNullOpts.mkFlagInt 0 ''
|
||||
Show line numbers when in Goyo mode.
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue