mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
lib: remove nixvimTypes
alias
This commit is contained in:
parent
bafc6308f6
commit
2f49c76a6a
59 changed files with 261 additions and 278 deletions
|
@ -85,7 +85,7 @@ in
|
|||
or firenvim for example. (accepts fun(LazyPlugin):boolean)
|
||||
'';
|
||||
|
||||
dependencies = helpers.mkNullOrOption (helpers.nixvimTypes.eitherRecursive str listOfPlugins) "Plugin dependencies";
|
||||
dependencies = helpers.mkNullOrOption (eitherRecursive str listOfPlugins) "Plugin dependencies";
|
||||
|
||||
init = helpers.mkNullOrLuaFn "init functions are always executed during startup";
|
||||
|
||||
|
@ -107,19 +107,19 @@ in
|
|||
'';
|
||||
|
||||
event =
|
||||
with helpers.nixvimTypes;
|
||||
with lib.types;
|
||||
helpers.mkNullOrOption (maybeRaw (either str (listOf str))) "Lazy-load on event. Events can be specified as BufEnter or with a pattern like BufEnter *.lua";
|
||||
|
||||
cmd =
|
||||
with helpers.nixvimTypes;
|
||||
with lib.types;
|
||||
helpers.mkNullOrOption (maybeRaw (either str (listOf str))) "Lazy-load on command";
|
||||
|
||||
ft =
|
||||
with helpers.nixvimTypes;
|
||||
with lib.types;
|
||||
helpers.mkNullOrOption (maybeRaw (either str (listOf str))) "Lazy-load on filetype";
|
||||
|
||||
keys =
|
||||
with helpers.nixvimTypes;
|
||||
with lib.types;
|
||||
helpers.mkNullOrOption (maybeRaw (either str (listOf str))) "Lazy-load on key mapping";
|
||||
|
||||
module = helpers.mkNullOrOption (enum [ false ]) ''
|
||||
|
@ -139,7 +139,7 @@ in
|
|||
'';
|
||||
|
||||
opts =
|
||||
with helpers.nixvimTypes;
|
||||
with lib.types;
|
||||
helpers.mkNullOrOption (maybeRaw (attrsOf anything)) ''
|
||||
opts should be a table (will be merged with parent specs),
|
||||
return a table (replaces parent specs) or should change a table.
|
||||
|
|
|
@ -131,7 +131,7 @@ nixvim.neovim-plugin.mkNeovimPlugin {
|
|||
plugins = mkOption {
|
||||
description = ''
|
||||
List of plugin specs provided to the `require('lz.n').load` function.
|
||||
Plugin specs can be ${nixvim.nixvimTypes.rawLua.description}.
|
||||
Plugin specs can be ${types.rawLua.description}.
|
||||
'';
|
||||
default = [ ];
|
||||
type = types.listOf lzPluginType;
|
||||
|
|
|
@ -57,17 +57,17 @@ in
|
|||
|
||||
run = helpers.mkNullOrOption (oneOf [
|
||||
str
|
||||
helpers.nixvimTypes.rawLua
|
||||
(listOf (either str helpers.nixvimTypes.rawLua))
|
||||
rawLua
|
||||
(listOf (either str rawLua))
|
||||
]) "Post-install hook";
|
||||
|
||||
requires = helpers.mkNullOrOption (helpers.nixvimTypes.eitherRecursive str listOfPlugins) "Plugin dependencies";
|
||||
requires = helpers.mkNullOrOption (eitherRecursive str listOfPlugins) "Plugin dependencies";
|
||||
|
||||
rocks = helpers.mkNullOrOption (either str (listOf (either str attrs))) "Luarocks dependencies";
|
||||
|
||||
config = helpers.mkNullOrOption (either str helpers.nixvimTypes.rawLua) "Code to run after this plugin is loaded";
|
||||
config = helpers.mkNullOrOption (either str rawLua) "Code to run after this plugin is loaded";
|
||||
|
||||
setup = helpers.mkNullOrOption (either str helpers.nixvimTypes.rawLua) "Code to be run before this plugin is loaded";
|
||||
setup = helpers.mkNullOrOption (either str rawLua) "Code to be run before this plugin is loaded";
|
||||
|
||||
cmd = helpers.mkNullOrOption (either str (listOf str)) "Commands which load this plugin";
|
||||
|
||||
|
@ -81,8 +81,8 @@ in
|
|||
|
||||
cond = helpers.mkNullOrOption (oneOf [
|
||||
str
|
||||
helpers.nixvimTypes.rawLua
|
||||
(listOf (either str helpers.nixvimTypes.rawLua))
|
||||
rawLua
|
||||
(listOf (either str rawLua))
|
||||
]) "Conditional test to load this plugin";
|
||||
|
||||
module = helpers.mkNullOrOption (either str (listOf str)) "Patterns of module names which load this plugin";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue