mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-18 01:35:41 +02:00
plugins: normalise null
plugin-defaults
Replaced all instances of `"null"` with `null`, when passing plugin-defaults to `defaultNullOpts` functions.
This commit is contained in:
parent
e58380adcd
commit
d136c08f3a
17 changed files with 69 additions and 55 deletions
|
@ -68,7 +68,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
Can be an integer or a float between 0 and 1 (e.g. 0.4 for 40%).
|
||||
'';
|
||||
|
||||
width = helpers.defaultNullOpts.mkNullable intOrRatio "null" ''
|
||||
width = helpers.defaultNullOpts.mkNullable intOrRatio null ''
|
||||
Can be an integer or a float between 0 and 1 (e.g. 0.4 for 40%).
|
||||
'';
|
||||
|
||||
|
@ -130,7 +130,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
Used to customize the layout.
|
||||
'';
|
||||
|
||||
get_config = helpers.defaultNullOpts.mkLuaFn "null" ''
|
||||
get_config = helpers.defaultNullOpts.mkLuaFn null ''
|
||||
This can be a function that accepts the opts parameter that is passed in to 'vim.select'
|
||||
or 'vim.input'. It must return either nil or config values to use in place of the global
|
||||
config values for that module.
|
||||
|
@ -153,8 +153,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
'';
|
||||
|
||||
telescope =
|
||||
helpers.defaultNullOpts.mkNullable (with helpers.nixvimTypes; either strLua (attrsOf anything))
|
||||
"null"
|
||||
helpers.defaultNullOpts.mkNullable (with helpers.nixvimTypes; either strLua (attrsOf anything)) null
|
||||
''
|
||||
Options for telescope selector.
|
||||
|
||||
|
@ -230,7 +229,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
}
|
||||
'' "An attribute set of window options.";
|
||||
|
||||
width = helpers.defaultNullOpts.mkNullable intOrRatio "null" ''
|
||||
width = helpers.defaultNullOpts.mkNullable intOrRatio null ''
|
||||
Can be an integer or a float between 0 and 1 (e.g. 0.4 for 40%).
|
||||
'';
|
||||
|
||||
|
@ -252,7 +251,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
of total."
|
||||
'';
|
||||
|
||||
height = helpers.defaultNullOpts.mkNullable intOrRatio "null" ''
|
||||
height = helpers.defaultNullOpts.mkNullable intOrRatio null ''
|
||||
Can be an integer or a float between 0 and 1 (e.g. 0.4 for 40%).
|
||||
'';
|
||||
|
||||
|
@ -313,7 +312,7 @@ helpers.neovim-plugin.mkNeovimPlugin config {
|
|||
```
|
||||
'';
|
||||
|
||||
get_config = helpers.defaultNullOpts.mkLuaFn "null" ''
|
||||
get_config = helpers.defaultNullOpts.mkLuaFn null ''
|
||||
This can be a function that accepts the opts parameter that is passed in to 'vim.select'
|
||||
or 'vim.input'. It must return either nil or config values to use in place of the global
|
||||
config values for that module.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue