This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
[FEATURE REQUEST] Refactor require
to use pcall
in language configurations
#377
Labels
scope: enhancement
New feature or request
Milestone
What is the feature, what would you like to be able to do?
Sometimes dependencies aren't installed, this is especially an issue in language configurations where the execution is not tied to the plugin being installed / loaded (unlike a
config
function). I would like allrequire
to be refactored to the following for safety.What is the use case, why do you want this feature?
This would allow doom-nvim to start without errors if there is an issue loading a dependency.
Possible Implementation (if applicable)
Create a safe require function in
utils.lua
that tries to require a dep, logs and returns nil if it fails or returns the dep.Additional context
The text was updated successfully, but these errors were encountered: