You are not logged in.
Pages: 1
I recently moved to zsh from bash, but am having an issue with the autocomplete plugin.
When I run pacman -S packagename it lags heavily. Possibly too many suggestions? Other commands seem ok so far.
I use alacritty but also tested with konsole with the same issue.
my .zshrc looks like this:
source /usr/share/zsh/plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh
HISTFILE=~/.histfile
HISTSIZE=500
SAVEHIST=500
setopt autocd beep extendedglob nomatch
bindkey -v
zstyle :compinstall filename '/home/user/.zshrc'
alias ff='fastfetch'
alias vim='nvim'
alias ls='ls --color=auto'
alias grep='grep --color=auto'Disabling the plugin solves the issue, so it must be the plugin. I installed the plugin via pacman of course.
Any help would be appreciated! Thanks
Offline
Ftr, that's autocomplete-as-you-type, not regular tab-driven autocomplete.
"pacman -S" autocompletion is (initially) slow, yes. (pacman -Sql will produce 15.000 results, if it's run on every keypress, that's gonna be a problem of sorts)
Does https://archlinux.org/packages/extra/an … ggestions/ behave better?
Offline
Ftr, that's autocomplete-as-you-type, not regular tab-driven autocomplete.
"pacman -S" autocompletion is (initially) slow, yes. (pacman -Sql will produce 15.000 results, if it's run on every keypress, that's gonna be a problem of sorts)Does https://archlinux.org/packages/extra/an … ggestions/ behave better?
Thanks for your reply.
zsh-autosuggestions does behave much better. No lag with that one.
I did think it might simply be the amount of possible suggestions. I found a similar report on their https://github.com/marlonrichert/zsh-au … issues/736
Maybe it is the plugin simply being a victim of its own success by suggesting too much.
If it wasn't clear, the lag occurs as you type the package name. So if I did sudo pacman -S zsh-,,, as each key is pressed it is lags and stutters, I assume as it tried to query every possible match.
Last edited by OneAndOnlyRoot (2025-07-17 15:51:47)
Offline
Pages: 1