Improve autopairs setup
This commit is contained in:
parent
ed10d1e97d
commit
e77beb53e9
2 changed files with 6 additions and 1 deletions
|
@ -2,4 +2,9 @@ local npairs = require('nvim-autopairs')
|
|||
|
||||
npairs.setup({
|
||||
check_ts = true,
|
||||
ts_config = {
|
||||
javascript = { 'string', 'template_string' },
|
||||
elixir = { 'string' },
|
||||
lua = { 'string', 'source' },
|
||||
},
|
||||
})
|
||||
|
|
|
@ -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 = '' } }))
|
||||
|
|
Loading…
Reference in a new issue