plugins.nvim-autopairs.settings

Options provided to the require('nvim-autopairs').setup function.

Type: attribute set of anything

Default: { }

Example:

{
  disable_filetype = [
    "TelescopePrompt"
  ];
  fast_wrap = {
    end_key = "$";
    map = "<M-e>";
  };
}

Declared by:

plugins.nvim-autopairs.settings.enable_abbr

Trigger abbreviation.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.nvim-autopairs.settings.enable_afterquote

Add bracket pairs after quote.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.nvim-autopairs.settings.enable_bracket_in_quote

Enable bracket in quote.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.nvim-autopairs.settings.enable_check_bracket_line

Check bracket in same line.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.nvim-autopairs.settings.enable_moveright

Enable moveright.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.nvim-autopairs.settings.break_undo

Switch for basic rule break undo sequence.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.nvim-autopairs.settings.check_ts

Use treesitter to check for a pair.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.nvim-autopairs.settings.disable_filetype

Disabled filetypes.

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

Default: null

Plugin default:

[
  "TelescopePrompt"
  "spectre_panel"
]

Declared by:

plugins.nvim-autopairs.settings.disable_in_macro

Disable when recording or executing a macro.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.nvim-autopairs.settings.disable_in_replace_mode

Disable in replace mode.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.nvim-autopairs.settings.disable_in_visualblock

Disable when insert after visual block mode.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.nvim-autopairs.settings.ignored_next_char

Regexp to ignore if it matches the next character.

Type: null or lua code string

Default: null

Plugin default: "[=[[%w%%%'%[%\"%.%%$]]=]"`

Declared by:

plugins.nvim-autopairs.settings.map_bs

Map the <BS> key to delete the pair.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.nvim-autopairs.settings.map_c_h

Map the <C-h> key to delete a pair.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.nvim-autopairs.settings.map_c_w

Map the <C-w> key to delete a pair if possible.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.nvim-autopairs.settings.map_cr

Map the <CR> key to confirm the completion.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.nvim-autopairs.settings.ts_config

Configuration for TreeSitter.

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

Default: null

Plugin default:

{
  javascript = [
    "string"
    "template_string"
  ];
  lua = [
    "string"
    "source"
    "string_content"
  ];
}

Declared by: