fix(lib): doom/help-modules: omit nil in module list

Some psuedo module categories (like :core and :user) don't have a module
component. Rather than display them as ':core nil' or ':user nil' in
module listings (like doom/help-modules), omit the nil entirely.
This commit is contained in:
Henrik Lissner 2023-03-20 20:15:46 -04:00
parent 382058e1e6
commit 1af08011df
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -345,7 +345,7 @@ without needing to check if they are available."
(cl-loop for (cat . mod) in (doom-module-list 'all)
for readme-path = (or (doom-module-locate-path cat mod "README.org")
(doom-module-locate-path cat mod))
for format = (format "%s %s" cat mod)
for format = (if mod (format "%s %s" cat mod) (format "%s" cat))
if (doom-module-p cat mod)
collect (list format readme-path)
else if (and cat mod)