mirror of https://github.com/NvChad/NvChad
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
321 B
Lua
13 lines
321 B
Lua
3 years ago
|
local present1, autopairs = pcall(require, "nvim-autopairs")
|
||
|
local present2, autopairs_completion = pcall(require, "nvim-autopairs.completion.compe")
|
||
|
|
||
|
if not (present1 or present2) then
|
||
3 years ago
|
return
|
||
3 years ago
|
end
|
||
|
|
||
|
autopairs.setup()
|
||
3 years ago
|
autopairs_completion.setup {
|
||
|
map_complete = true, -- insert () func completion
|
||
3 years ago
|
map_cr = true,
|
||
3 years ago
|
}
|