mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-18 08:18:24 +02:00
[Refactor] Clean-up redundant module-load checks (#1011)
This commit is contained in:
parent
f36fd1907f
commit
6eb75c5678
8 changed files with 15 additions and 57 deletions
|
@ -131,15 +131,9 @@ return {
|
|||
"terrortylor/nvim-comment",
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
local status_ok, nvim_comment = pcall(require, "nvim_comment")
|
||||
if not status_ok then
|
||||
local Log = require "core.log"
|
||||
Log:get_default().error "Failed to load nvim-comment"
|
||||
return
|
||||
end
|
||||
nvim_comment.setup()
|
||||
require("nvim_comment").setup()
|
||||
if lvim.builtin.comment.on_config_done then
|
||||
lvim.builtin.comment.on_config_done(nvim_comment)
|
||||
lvim.builtin.comment.on_config_done(require "nvim_comment")
|
||||
end
|
||||
end,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue