This commit is contained in:
zztrieuzz 2021-10-29 09:02:34 +07:00
parent b977c8c38a
commit 76658097d7
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ check readme.md on nvim-cmp repo.
-- If you want insert `(` after select function or method item
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
local cmp = require('cmp')
cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done())
cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = '' } }))
```
</details>
<details>

View File

@ -7,7 +7,7 @@ M.setup = function()
vim.notify(
'[nvim-autopairs] function nvim-autopairs.completion.cmp setup is deprecated.'
)
vim.notify('[nvim-autopairs]you only need to add <cr> mapping on nvim-cmp.')
vim.notify('[nvim-autopairs] remove this function and use require("cmp").setup to add <cr> mapping.')
end
M.on_confirm_done = function(opt)