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:
parent
382058e1e6
commit
1af08011df
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue