Closed Akhil-CM closed 2 months ago
Even though kind:defer
has a special annotation in antidote, it's not code I wrote or maintain, so my support for any issues related to its use is very limited. Zsh-defer is actually just a regular Zsh plugin that lives here: romkatv/zsh-defer. It has some caveats you may want to go over, and some flags it accepts. If you need to set a flag for zsh-defer, you can do so with this zstyle:
zstyle ':antidote:bundle:*' defer-options '-a'
zstyle ':antidote:bundle:zdharma-continuum/fast-syntax-highlighting' defer-options '-s'
Beyond that, there's nothing specific to antidote that is happening here to cause this. It's something with the interactions between zdharma-continuum/fast-syntax-highlighting, romkatv/zsh-defer, and zsh-users/zsh-autosuggestions. Sorry I can't be of more help on this.
That's completely fine. Just posting here so that anyone else with the issue can see this. For now, I have disabled defer as I don't notice any difference with and without it
I add
kind:defer
tozdharma-continuum/fast-syntax-highlighting
with the following config:and enter the following in the terminal:
~$ echo one && echo two
the next time I type
e
in the terminal, there will be autosuggestions. Since I have the following in my.zshrc
:I press the keybind for forward word and it will complete each forward from the autosuggestions. However, when I complete the autosuggestion for
echo
command above, I get after the last word:~$ echo one && echo twotwo
So the last word is duplicated (two
->twotwo
)This doesn't happen in two cases:
echo
command first executed was something like~$ echo "one" && echo "two"
kind:defer
fromzdharma-continuum/fast-syntax-highlighting
in as follows:Completions.
zsh-users/zsh-completions path:src kind:fpath
mattmc3/ez-compinit
Syntax highlighting
zdharma-continuum/fast-syntax-highlighting
These popular core plugins should be loaded at the end
zsh-users/zsh-autosuggestions