plugins.spectre.settings

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

Type: attribute set of anything

Default: { }

Example:

{
  default = {
    find = {
      cmd = "rg";
      options = [
        "word"
        "hidden"
      ];
    };
    replace = {
      cmd = "sed";
    };
  };
  find_engine = {
    rg = {
      args = [
        "--color=never"
        "--no-heading"
        "--with-filename"
        "--line-number"
        "--column"
      ];
      cmd = "rg";
      options = {
        hidden = {
          desc = "hidden file";
          icon = "[H]";
          value = "--hidden";
        };
        ignore-case = {
          desc = "ignore case";
          icon = "[I]";
          value = "--ignore-case";
        };
        line = {
          desc = "match in line";
          icon = "[L]";
          value = "-x";
        };
        word = {
          desc = "match in word";
          icon = "[W]";
          value = "-w";
        };
      };
    };
  };
  is_insert_mode = false;
  live_update = true;
}

Declared by:

plugins.spectre.settings.color_devicons

Whether to enable color devicons.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.spectre.settings.highlight

Highlight groups.

Plugin default:

{
  headers = "SpectreHeader";
  ui = "SpectreBody";
  filename = "SpectreFile";
  filedirectory = "SpectreDir";
  search = "SpectreSearch";
  border = "SpectreBorder";
  replace = "SpectreReplace";
}

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

Default: null

Declared by:

plugins.spectre.settings.is_block_ui_break

Mapping backspace and enter key to avoid ui break.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.spectre.settings.is_insert_mode

Start open panel in insert mode.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.spectre.settings.is_open_target_win

Open file on opener window.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.spectre.settings.line_sep

Line separator.

Plugin default: "└──────────────────────────────────────────────────────"

Type: null or string or raw lua code

Default: null

Declared by:

plugins.spectre.settings.line_sep_start

Start of the line separator

Plugin default: "┌──────────────────────────────────────────────────────"

Type: null or string or raw lua code

Default: null

Declared by:

plugins.spectre.settings.live_update

Auto execute search again when you write to any file in vim.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.spectre.settings.lnum_for_results

Show line number for search/replace results.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.spectre.settings.open_cmd

The open command.

Plugin default: "vnew"

Type: null or string or raw lua code

Default: null

Declared by:

plugins.spectre.settings.replace_vim_cmd

The replace command to use within vim.

Plugin default: "cdo"

Type: null or string or raw lua code

Default: null

Declared by:

plugins.spectre.settings.result_padding

Result padding string.

Plugin default: "│ "

Type: null or string or raw lua code

Default: null

Declared by: