plugins.neotest.settings

Options provided to the require('neotest').setup function.

Type: attribute set of anything

Default: { }

Example:

{
  output = {
    enabled = true;
    open_on_run = true;
  };
  output_panel = {
    enabled = true;
    open = "botright split | resize 15";
  };
  quickfix = {
    enabled = false;
  };
}

Declared by:

plugins.neotest.settings.consumers

key: string value: lua function

Plugin default: {}

Type: null or (attribute set of (raw lua code or raw lua code))

Default: null

Declared by:

plugins.neotest.settings.default_strategy

The default strategy.

Plugin default: "integrated"

Type: null or string or raw lua code

Default: null

Declared by:

plugins.neotest.settings.highlights

Plugin default:

{
  adapter_name = "NeotestAdapterName";
  border = "NeotestBorder";
  dir = "NeotestDir";
  expand_marker = "NeotestExpandMarker";
  failed = "NeotestFailed";
  file = "NeotestFile";
  focused = "NeotestFocused";
  indent = "NeotestIndent";
  marked = "NeotestMarked";
  namespace = "NeotestNamespace";
  passed = "NeotestPassed";
  running = "NeotestRunning";
  select_win = "NeotestWinSelect";
  skipped = "NeotestSkipped";
  target = "NeotestTarget";
  test = "NeotestTest";
  unknown = "NeotestUnknown";
  watching = "NeotestWatching";
}

Type: null or (attribute set of (string or raw lua code))

Default: null

Declared by:

plugins.neotest.settings.icons

Icons used throughout the UI. Defaults use VSCode’s codicons.

Plugin default:

{
  child_indent = "│";
  child_prefix = "├";
  collapsed = "─";
  expanded = "╮";
  failed = "";
  final_child_indent = " ";
  final_child_prefix = "╰";
  non_collapsible = "─";
  passed = "";
  running = "";
  running_animated = ["/" "|" "\\" "-" "/" "|" "\\" "-"];
  skipped = "";
  unknown = "";
  watching = "";
}

Type: null or (attribute set of (string or list of string or raw lua code))

Default: null

Declared by:

plugins.neotest.settings.log_level

Minimum log levels.

Type: null or unsigned integer, meaning >=0, or one of “off”, “error”, “warn”, “info”, “debug”, “trace”

Default: "warn"

Declared by: