mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-27 11:08:53 +02:00
helpers: move rawType to helpers.nixvimTypes (#871)
This is done in preparation of adding new (lua) types to help the documentation.
This commit is contained in:
parent
2f13e3a21d
commit
af41ea2d80
38 changed files with 80 additions and 75 deletions
|
@ -31,12 +31,12 @@ in {
|
|||
|
||||
theme = helpers.mkNullOrOption types.str "Custom theme, will use your global theme by default.";
|
||||
|
||||
path = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.rawType) "vim.loop.cwd()" ''
|
||||
path = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.nixvimTypes.rawLua) "vim.loop.cwd()" ''
|
||||
Directory to browse files from.
|
||||
`vim.fn.expanded` automatically.
|
||||
'';
|
||||
|
||||
cwd = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.rawType) "vim.loop.cwd()" ''
|
||||
cwd = helpers.defaultNullOpts.mkNullable (types.either types.str helpers.nixvimTypes.rawLua) "vim.loop.cwd()" ''
|
||||
Directory to browse folders from.
|
||||
`vim.fn.expanded` automatically.
|
||||
'';
|
||||
|
@ -131,7 +131,7 @@ in {
|
|||
mappings =
|
||||
helpers.mkNullOrOption (
|
||||
with types;
|
||||
attrsOf (attrsOf (either str helpers.rawType))
|
||||
attrsOf (attrsOf (either str helpers.nixvimTypes.rawLua))
|
||||
) ''
|
||||
`fb_actions` mappings.
|
||||
Mappings can also be a lua function.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue