mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +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
|
@ -15,7 +15,7 @@ with lib; let
|
|||
nargs = helpers.mkNullOrOption (types.enum ["0" "1" "*" "?" "+"]) ''
|
||||
The number of arguments to expect, see :h command-nargs.
|
||||
'';
|
||||
complete = helpers.mkNullOrOption (with types; either str helpers.rawType) ''
|
||||
complete = helpers.mkNullOrOption (with types; either str helpers.nixvimTypes.rawLua) ''
|
||||
Tab-completion behaviour, see :h command-complete.
|
||||
'';
|
||||
range = helpers.mkNullOrOption (with types; oneOf [bool int (enum ["%"])]) ''
|
||||
|
|
|
@ -13,7 +13,7 @@ with lib; let
|
|||
# Raw filetype
|
||||
str
|
||||
# Function to set the filetype
|
||||
helpers.rawType
|
||||
helpers.nixvimTypes.rawLua
|
||||
# ["filetype" {priority = xx;}]
|
||||
(listOf (either str (submodule {
|
||||
options = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue