mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
lib: remove nixvimTypes
alias
This commit is contained in:
parent
bafc6308f6
commit
2f49c76a6a
59 changed files with 261 additions and 278 deletions
|
@ -8,7 +8,7 @@ let
|
|||
commandAttributes = lib.types.submodule {
|
||||
options = {
|
||||
command = lib.mkOption {
|
||||
type = with helpers.nixvimTypes; either str rawLua;
|
||||
type = with lib.types; either str rawLua;
|
||||
description = "The command to run.";
|
||||
};
|
||||
|
||||
|
@ -24,7 +24,7 @@ let
|
|||
''
|
||||
The number of arguments to expect, see :h command-nargs.
|
||||
'';
|
||||
complete = helpers.mkNullOrOption (with lib.types; either str helpers.nixvimTypes.rawLua) ''
|
||||
complete = helpers.mkNullOrOption (with lib.types; either str rawLua) ''
|
||||
Tab-completion behaviour, see :h command-complete.
|
||||
'';
|
||||
range =
|
||||
|
|
|
@ -15,7 +15,7 @@ let
|
|||
# Raw filetype
|
||||
str
|
||||
# Function to set the filetype
|
||||
helpers.nixvimTypes.rawLua
|
||||
rawLua
|
||||
# ["filetype" {priority = xx;}]
|
||||
(listOf (
|
||||
either str (submodule {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{
|
||||
options = {
|
||||
highlight = lib.mkOption {
|
||||
type = lib.types.attrsOf helpers.nixvimTypes.highlight;
|
||||
type = lib.types.attrsOf lib.types.highlight;
|
||||
default = { };
|
||||
description = "Define new highlight groups";
|
||||
example = {
|
||||
|
@ -16,7 +16,7 @@
|
|||
};
|
||||
|
||||
highlightOverride = lib.mkOption {
|
||||
type = lib.types.attrsOf helpers.nixvimTypes.highlight;
|
||||
type = lib.types.attrsOf lib.types.highlight;
|
||||
default = { };
|
||||
description = "Define highlight groups to override existing highlight";
|
||||
example = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue