2021-07-17 07:14:52 -04:00
|
|
|
local present1, autopairs = pcall(require, "nvim-autopairs")
|
|
|
|
local present2, autopairs_completion = pcall(require, "nvim-autopairs.completion.compe")
|
|
|
|
|
|
|
|
if not (present1 or present2) then
|
2021-08-16 03:49:09 -04:00
|
|
|
return
|
2021-07-15 11:43:17 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
autopairs.setup()
|
2021-08-16 03:49:09 -04:00
|
|
|
autopairs_completion.setup {
|
|
|
|
map_cr = true,
|
|
|
|
map_complete = true, -- insert () func completion
|
|
|
|
}
|