rossmacarthur / sheldon

:bowtie: Fast, configurable, shell plugin manager
https://sheldon.cli.rs
Apache License 2.0
1.02k stars 21 forks source link

Unable to use zsh-completions in sheldon #172

Closed KrozT closed 8 months ago

KrozT commented 9 months ago

Hello, I'm encountering an issue with the integration of zsh-completions in Sheldon. Despite multiple attempts, I can't seem to get it to work, and I'm unsure if I'm overlooking something or if there's an underlying error causing the problem.

.zshrc

# Added by RTX
eval "$(rtx activate zsh)"

# Added by Starship
export STARSHIP_CONFIG="$HOME/.config/starship/config.toml"
eval "$(starship init zsh)"

# Added by Sheldon
eval "$(sheldon source)"

I also tried changing the sheldon part but it still doesn't work:

autoload -Uz compinit
eval "$(sheldon source)"
compinit

plugins.toml

[templates]
defer = "{{ hooks?.pre | nl }}{% for file in files %}zsh-defer source \"{{ file }}\"\n{% endfor %}{{ hooks?.post | nl }}"

[plugins]

[plugins.zsh-defer]
github = "romkatv/zsh-defer"

[plugins.zsh-syntax-highlighting]
github = "zsh-users/zsh-syntax-highlighting"
apply = ["defer"]

[plugins.zsh-autosuggestions]
github = "zsh-users/zsh-autosuggestions"
use = ["{{ name }}.zsh"]

[plugins.zsh-completions]
github = "zsh-users/zsh-completions"

[plugins.zsh-history-substring-search]
github = "zsh-users/zsh-history-substring-search"

[plugins.compinit]
inline = 'autoload -Uz compinit && compinit'

I also tried changing the plugins.compinit but it still doesn't work:

[plugins.compinit]
inline = "autoload -Uz compinit && zsh-defer compinit"