26 lines
996 B
Lua
26 lines
996 B
Lua
require("autoclose").setup({
|
|
keys = {
|
|
["("] = { escape = false, close = true, pair = "()" },
|
|
["["] = { escape = false, close = true, pair = "[]" },
|
|
["{"] = { escape = false, close = true, pair = "{}" },
|
|
|
|
[">"] = { escape = true, close = false, pair = "<>" },
|
|
[")"] = { escape = true, close = false, pair = "()" },
|
|
["]"] = { escape = true, close = false, pair = "[]" },
|
|
["}"] = { escape = true, close = false, pair = "{}" },
|
|
|
|
['"'] = { escape = true, close = true, pair = '""' },
|
|
["'"] = { escape = true, close = true, pair = "''" },
|
|
["`"] = { escape = true, close = true, pair = "``" },
|
|
["$"] = { escape = true, close = true, pair = "$$", disabled_filetypes = {} },
|
|
},
|
|
options = {
|
|
disabled_filetypes = { "text" },
|
|
disable_when_touch = false,
|
|
touch_regex = "[%w(%[{]",
|
|
pair_spaces = true,
|
|
auto_indent = true,
|
|
disable_command_mode = false,
|
|
},
|
|
})
|