completely disable specific keys: `'` and `"`
gilbh opened this issue · 3 comments
gilbh commented
Great plugin, but I don't want it to work for '
and "
(actually, for any duplication of an identical key).
I tried the following:
require("autoclose").setup({
["'"] = { escape = false, close = false, pair = "''"},
['"'] = { escape = false, close = false, pair = '""'},
})
-- but they automated closing still happens.
How to completely disable specific keys?
Thanks!
m4xshen commented
You should put these in a "keys" table. Take a look at the example config.
m4xshen commented
Oh, I forgot to update some part of the example config. I will fix that soon.
gilbh commented
Indeed, that did the trick! Thanks!!