Closed diegosanz closed 4 years ago
This doesn't look like a Pure issue, perhaps you can take a look at what order zsh-autosuggest
and pure
is being activated?
Hi @mafredri , I'm not sure how to check if zsh-autosuggest
is working. I can confirm that pure
is working because the prompt changes.
In .zimrc
I have this line: zmodule sindresorhus/pure --source async.zsh --source pure.zsh
.
If I comment replace it by zmodule sindresorhus/pure --source async.zsh
, removing --source pure.zsh
the error message disspaear and obviously pure
dissapear too.
FUNCNEST
it's a system's variable, right? If I execute echo $FUNCNEST
it returns 500
. Should I increase it?
Thanks for your help! :)
I was referring to the fact that the error you are seeing comes from zsh-autosuggest
, so look at how you are loading that. Perhaps you need to do it after Pure, or something.
I found my error. My .zimrc
was the original created by zim, with the following content:
# Start configuration added by Zim install {{{
# -------
# Modules
# -------
# Sets sane Zsh built-in environment options.
zmodule environment
# Provides handy git aliases and functions.
zmodule git
# Applies correct bindkeys for input events.
zmodule input
# Sets a custom terminal title.
zmodule termtitle
# Utility aliases and functions. Adds colour to ls, grep and less.
zmodule utility
#
# Prompt
#
# Exposes git repository status information to prompts.
zmodule git-info
# A customizable version of steeef's prompt theme.
zmodule steeef
# Additional completion definitions for Zsh.
zmodule zsh-users/zsh-completions
# Enables and configures smart and extensive tab completion.
# completion must be sourced after zsh-users/zsh-completions
zmodule completion
# Fish-like autosuggestions for Zsh.
zmodule zsh-users/zsh-autosuggestions
# Fish-like syntax highlighting for Zsh.
# zsh-users/zsh-syntax-highlighting must be sourced after completion
zmodule zsh-users/zsh-syntax-highlighting
# Fish-like history search (up arrow) for Zsh.
# zsh-users/zsh-history-substring-search must be sourced after zsh-users/zsh-syntax-highlighting
zmodule zsh-users/zsh-history-substring-search
# }}} End configuration added by Zim install
I replaced the line zmodule steeef
by zmodule sindresorhus/pure --source async.zsh --source pure.zsh
and it works perfectly.
Thank you @mafredri for your help!
General information
System report (output of
prompt_pure_system_report
):''
❯
1.13.0
1.8.4
typeset -g PROMPT=$'%F{${prompt_pure_colors[path]}}%~%f %}%(12V.%F{$prompt_pure_colors[virtualenv]}%12v%f .)%(?.%F{$prompt_pure_colors[prompt:success]}.%F{$prompt_pure_colors[prompt:error]})${prompt_pure_state[prompt]}%f '
typeset -g -A prompt_pure_colors=( [execution_time]=yellow [git:action]=yellow [git:arrow]=cyan [git:branch]=242 [git:branch:cached]=red [git:dirty]=218 [git:stash]=cyan [host]=242 [path]=blue [prompt:continuation]=242 [prompt:error]=red [prompt:success]=magenta [user]=242 [user:root]=default [virtualenv]=242 )
export TERM=xterm-256color
export VIRTUAL_ENV_DISABLE_PROMPT=1
export CONDA_CHANGEPS1=no
Other information
Pure version: 1.13.0
ZSH version: 5.8 (x86_64-pc-linux-gnu)
Terminal program & version: konsole 20.08.1
Operating system: Linux Manjaro (kernel 5.8.16)
ZSH framework: zim 1.3.2