Any commands returns _zsh_autosuggest_highlight_reset:3: maximum nested function level reached; increase FUNCNEST?
zsh -df
_zsh_autosuggest_highlight_reset:3: maximum nested function level reached; increase FUNCNEST?
nas% source .zim/modules/zsh-autosuggestions/zsh-autosuggestions.zsh
nas% ls
no problem manually sourcing zsh-autosuggestions
โฏ zimfw info
_zsh_autosuggest_highlight_reset:3: maximum nested function level reached; increase FUNCNEST?
zimfw info
zimfw version: 1.3.2 (previous commit is ccace0c)
ZIM_HOME: /home/zach/.zim
Zsh version: 5.8
System info: Linux nas 5.8.17_1 #1 SMP Fri Oct 30 12:13:24 UTC 2020 x86_64 GNU/Linux
Clean install resolved the issue
After upgrade, the ~/.zlogin, ~/.zshenv are wrongly configed, sourcing ${ZIM_HOME}/login_init.zshtwice.
source pure theme: zmodule sindresorhus/pure --source async.zsh --source pure.zsh will lead to this problem.
If you upgraded from Zim pre-1.x to Zim 1.x, you need to manually edit your startup files to remove or rewrite the lines from the pre-1.x installation. If you're sourcing login_init.zsh twice, then you still have pre-1.x lines around.
EDIT: We never came up with a nice migration script, so the migration still needs to be done manually.
source
puretheme:zmodule sindresorhus/pure --source async.zsh --source pure.zshwill lead to this problem.
I have been using zim and pure for very long time, but recently have updated zim and having same issue
Same issue on a fresh installation with zmodule sindresorhus/pure -s async.zsh -s pure.zsh -t v1.16.0 inside .zimrc.
edit: problem solved. As mentioned in https://github.com/sindresorhus/pure/issues/574, pure needs to be loaded _before_ zsh-users/zsh-autosuggestions inside .zimrc:
zmodule sindresorhus/pure -s async.zsh -s pure.zsh -t v1.16.0
zmodule zsh-users/zsh-autosuggestions