mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 18:24:35 +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
|
@ -40,7 +40,7 @@ in {
|
|||
|
||||
storagePath =
|
||||
helpers.defaultNullOpts.mkNullable
|
||||
(with types; either str helpers.rawType)
|
||||
(with types; either str helpers.nixvimTypes.rawLua)
|
||||
''{__raw = "vim.fn.stdpath('data') .. '/databases/yanky.db'";}''
|
||||
"Only for sqlite storage.";
|
||||
|
||||
|
@ -70,7 +70,7 @@ in {
|
|||
|
||||
picker = {
|
||||
select = {
|
||||
action = helpers.mkNullOrOption (with types; either helpers.rawType str) ''
|
||||
action = helpers.mkNullOrOption (with types; either helpers.nixvimTypes.rawLua str) ''
|
||||
This define the action that should be done when selecting an item in the
|
||||
`vim.ui.select` prompt.
|
||||
If you let this option to `null`, this will use the default action: put selected item
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue