2021-07-17 11:14:52 +00: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 07:49:09 +00:00
|
|
|
return
|
2021-07-15 15:43:17 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
autopairs.setup()
|
2021-08-16 07:49:09 +00:00
|
|
|
autopairs_completion.setup {
|
|
|
|
map_cr = true,
|
|
|
|
map_complete = true, -- insert () func completion
|
|
|
|
}
|