mirror of
https://github.com/ilyakooo0/nvim-autopairs.git
synced 2024-09-11 07:15:44 +03:00
docs: fix #171
This commit is contained in:
parent
b977c8c38a
commit
76658097d7
@ -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>
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user