mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-21 03:04:31 +02:00
wrap requires in pcall
This commit is contained in:
parent
0e2ad0c1fe
commit
716f127e95
12 changed files with 58 additions and 16 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue