Skip to content

Commit

Permalink
fix: issue a warning to users when dependencies cannot be found (inst…
Browse files Browse the repository at this point in the history
…ead of silently failing)
  • Loading branch information
vhyrro committed Apr 3, 2024
1 parent df5dc44 commit 04f4127
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/neorg/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function neorg.setup(cfg)
end

if not (pcall(require, "lua-utils")) then
vim.notify("Warning [neorg]: lua-utils not found. If you're just installing the plugin, ignore this message, when in doubt run `:Lazy build neorg`. If you're not on lazy please rerun the build scripts.", vim.log.levels.WARN)
user_configuration = cfg
return
end
Expand Down

0 comments on commit 04f4127

Please sign in to comment.