1
0
Fork 0

Improve autopairs setup

This commit is contained in:
Daniel Kempkens 2021-12-07 23:00:44 +01:00
parent ed10d1e97d
commit e77beb53e9
2 changed files with 6 additions and 1 deletions

View file

@ -2,4 +2,9 @@ local npairs = require('nvim-autopairs')
npairs.setup({ npairs.setup({
check_ts = true, check_ts = true,
ts_config = {
javascript = { 'string', 'template_string' },
elixir = { 'string' },
lua = { 'string', 'source' },
},
}) })

View file

@ -129,4 +129,4 @@ cmp.setup.cmdline(':', {
}) })
}) })
cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done()) cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = '' } }))