summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/cfg/autopairs/init.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/cfg/autopairs/init.lua')
-rw-r--r--.config/nvim/lua/cfg/autopairs/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/nvim/lua/cfg/autopairs/init.lua b/.config/nvim/lua/cfg/autopairs/init.lua
index 6a9e428..b8dad5f 100644
--- a/.config/nvim/lua/cfg/autopairs/init.lua
+++ b/.config/nvim/lua/cfg/autopairs/init.lua
@@ -1,6 +1,10 @@
-- if not package.loaded['nvim-autopairs'] then
-- return
-- end
+local status_ok, autopairs = pcall(require, "nvim-autopairs")
+if not status_ok then
+ return
+end
local npairs = require "nvim-autopairs"
local Rule = require "nvim-autopairs.rule"