mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 13:30:41 +00:00
20 lines
381 B
Lua
20 lines
381 B
Lua
|
local autopairs, autopairs_completion
|
||
|
if
|
||
|
not pcall(
|
||
|
function()
|
||
|
autopairs = require "nvim-autopairs"
|
||
|
autopairs_completion = require "nvim-autopairs.completion.compe"
|
||
|
end
|
||
|
)
|
||
|
then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
autopairs.setup()
|
||
|
autopairs_completion.setup(
|
||
|
{
|
||
|
map_cr = true,
|
||
|
map_complete = true -- insert () func completion
|
||
|
}
|
||
|
)
|