mirror of
https://github.com/NvChad/NvChad.git
synced 2024-11-06 15:20:25 +00:00
d16ffabcfd
first commit of Refactor handle require errors move config from other places to proper files don't create a pseudo config function for no reason https://github.com/siduck76/NvChad/pull/156#issuecomment-881453546
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
|
|
}
|
|
)
|