Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

plugins.hop.settings

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

Type: open submodule of attribute set of lua value

Default: { }

Example:

{
  case_insensitive = false;
  dim_unmatched = true;
  direction = "require'hop.hint'.HintDirection.BEFORE_CURSOR";
  hint_position = "require'hop.hint'.HintPosition.BEGIN";
  hint_type = "require'hop.hint'.HintType.OVERLAY";
  jump_on_sole_occurrence = true;
  keys = "asdghklqwertyuiopzxcvbnmfj";
  match_mappings = [
    "zh"
    "zh_sc"
  ];
  quit_key = "<Esc>";
  reverse_distribution = false;
  teasing = true;
  virtual_cursor = true;
  x_bias = 10;
}

Declared by:

plugins.hop.settings.direction

Direction in which to hint. See |hop.hint.HintDirection| for further details.

Setting this in the user configuration will make all commands default to that direction, unless overridden.

Type: null or lua code string

Default: null

Declared by:

plugins.hop.settings.hint_position

Position of hint in match. See |hop.hint.HintPosition| for further details.

Type: null or lua code string

Default: null

Plugin default: "require'hop.hint'.HintPosition.BEGIN"

Declared by:

plugins.hop.settings.hint_type

How to show the hint char.

Possible values:

  • “overlay”: display over the specified column, without shifting the underlying text.
  • “inline”: display at the specified column, and shift the buffer text to the right as needed.

Type: null or lua code string

Default: null

Plugin default: "require'hop.hint'.HintType.OVERLAY"

Declared by: