doom-modeline 2.1.0

doom-modeline-def-segment 直接在config.el 下写会报错,你是怎么解决的呀?

⛔ Warning (initialization): An error occurred while loading ‘/Users/van/.emacs.d/.local/etc/@/init.29.elc’:

Error caused by user's config or system: /Users/van/.doom.d/config.el, (void-function doom-modeline-def-segment)

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.