summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/cfg/autopairs
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-07-07 14:10:25 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-07-07 14:10:25 +0200
commit409dfed3237f9f0a6e96879078d1daf3d9c02e03 (patch)
treefd340e6803212b5ae401e2d6a1b524c412498663 /.config/nvim/lua/cfg/autopairs
parent4918f8747e2d3e4d3342bb1f5ee05db6198819d1 (diff)
Updated config again after Chris's updates
Diffstat (limited to '.config/nvim/lua/cfg/autopairs')
-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"