summaryrefslogtreecommitdiff
path: root/lua/plugins.lua
diff options
context:
space:
mode:
authorChris <[email protected]>2021-07-06 20:42:29 -0400
committerChris <[email protected]>2021-07-06 20:42:29 -0400
commit716f127e95b71bdc1f1ebb960b381ba50b10c1fe (patch)
tree0683b852e4f54cfeaf98c206f9049e4ee130ddbb /lua/plugins.lua
parent0e2ad0c1fec50a24177129c89b3edb9007776caf (diff)
wrap requires in pcall
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r--lua/plugins.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 33efdf05..22132956 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -94,7 +94,11 @@ return require("packer").startup(function(use)
"terrortylor/nvim-comment",
cmd = "CommentToggle",
config = function()
- require("nvim_comment").setup()
+ local status_ok, nvim_comment = pcall(require, "nvim_comment")
+ if not status_ok then
+ return
+ end
+ nvim_comment.setup()
end,
}
@@ -145,8 +149,8 @@ return require("packer").startup(function(use)
"norcalli/nvim-colorizer.lua",
event = "BufRead",
config = function()
- require("colorizer").setup()
- vim.cmd "ColorizerReloadAllBuffers"
+ require "lv-colorizer"
+ -- vim.cmd "ColorizerReloadAllBuffers"
end,
disable = not O.plugin.colorizer.active,
}