mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +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 @@ with lib; let
|
|||
};
|
||||
|
||||
args = {
|
||||
type = listOf (either str helpers.rawType);
|
||||
type = listOf (either str helpers.nixvimTypes.rawLua);
|
||||
description = ''
|
||||
List of arguments.
|
||||
Can contain functions with zero arguments that will be evaluated once the linter is used.
|
||||
|
@ -229,7 +229,7 @@ in {
|
|||
|
||||
callback = mkOption {
|
||||
type = with types;
|
||||
nullOr (either str helpers.rawType);
|
||||
nullOr (either str helpers.nixvimTypes.rawLua);
|
||||
default = defaultCallback;
|
||||
description = "What action to perform for linting";
|
||||
};
|
||||
|
|
|
@ -63,7 +63,7 @@ in {
|
|||
|
||||
rootDir =
|
||||
helpers.defaultNullOpts.mkNullable
|
||||
(types.either types.str helpers.rawType)
|
||||
(types.either types.str helpers.nixvimTypes.rawLua)
|
||||
''{ __raw = "require('jdtls.setup').find_root({'.git', 'mvnw', 'gradlew'})"; }''
|
||||
''
|
||||
This is the default if not provided, you can remove it. Or adjust as needed.
|
||||
|
|
|
@ -22,7 +22,7 @@ with lib; {
|
|||
with types;
|
||||
attrsOf (
|
||||
either
|
||||
helpers.rawType
|
||||
helpers.nixvimTypes.rawLua
|
||||
(enum ["global" "local" "noop"])
|
||||
)
|
||||
)
|
||||
|
@ -106,7 +106,7 @@ with lib; {
|
|||
log = {
|
||||
file =
|
||||
helpers.defaultNullOpts.mkNullable
|
||||
(with types; either str helpers.rawType)
|
||||
(with types; either str helpers.nixvimTypes.rawLua)
|
||||
''
|
||||
{
|
||||
__raw = "vim.fn.stdpath('log') .. '/rainbow-delimiters.log'";
|
||||
|
|
|
@ -46,7 +46,7 @@ in
|
|||
|
||||
defaultConfig =
|
||||
helpers.defaultNullOpts.mkNullable
|
||||
(with types; attrsOf (either str helpers.rawType))
|
||||
(with types; attrsOf (either str helpers.nixvimTypes.rawLua))
|
||||
"null"
|
||||
''
|
||||
Pre-filled prompt answer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue