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.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.nvim-autopairs.settings.enable_afterquote

Add bracket pairs after quote.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.nvim-autopairs.settings.enable_bracket_in_quote

Enable bracket in quote.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.nvim-autopairs.settings.enable_check_bracket_line

Check bracket in same line.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.nvim-autopairs.settings.enable_moveright

Enable moveright.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.nvim-autopairs.settings.break_undo

Switch for basic rule break undo sequence.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.nvim-autopairs.settings.check_ts

Use treesitter to check for a pair.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.nvim-autopairs.settings.disable_filetype

Disabled filetypes.

Plugin default: ["TelescopePrompt" "spectre_panel"]

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

Default: null

Declared by:

plugins.nvim-autopairs.settings.disable_in_macro

Disable when recording or executing a macro.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.nvim-autopairs.settings.disable_in_replace_mode

Disable in replace mode.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.nvim-autopairs.settings.disable_in_visualblock

Disable when insert after visual block mode.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.nvim-autopairs.settings.ignored_next_char

Regexp to ignore if it matches the next character.

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

Type: null or lua code string

Default: null

Declared by:

plugins.nvim-autopairs.settings.map_bs

Map the <BS> key to delete the pair.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.nvim-autopairs.settings.map_c_h

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

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.nvim-autopairs.settings.map_c_w

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

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.nvim-autopairs.settings.map_cr

Map the <CR> key to confirm the completion.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.nvim-autopairs.settings.ts_config

Configuration for TreeSitter.

Plugin default:

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

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

Default: null

Declared by: