ultimate-autopair.nvim icon indicating copy to clipboard operation
ultimate-autopair.nvim copied to clipboard

Support for lua `[=[...]=]` string?

Open Bekaboo opened this issue 7 months ago • 4 comments

I know it might be hard or tricky but is it possible to auto-pair [=[...]=] lua string?

With this config:

require('ultimate-autopair').setup({
  { '[=[', ']=]', ft = { 'lua' } },
})

the current behavior will left one extra square bracket after the string:

|        -->  type [
[|]     --> type =
[=|]   --> type [
[=[|]=]]

Bekaboo avatar Jan 10 '24 03:01 Bekaboo