# Sheldon configuration file # # See https://sheldon.cli.rs # # Also heavily inspired by https://github.com/rossmacarthur/dotfiles/tree/trunk shell = "zsh" [templates] defer = ''' {{- hooks?.pre | nl }} {%- for file in files %}zsh-defer source "{{ file }}"{{ "\n" }} {%- endfor %} {{- hooks?.post | nl }}''' defer-more = ''' {{- hooks?.pre | nl }} {%- for file in files %}zsh-defer -t 0.5 source "{{ file }}"{{ "\n" }} {%- endfor %} {{- hooks?.post | nl }}''' # Loading indicator # ----------------- [plugins.show] local = "~/.zsh/plugins/loading" # Completions # ----------- [plugins.zsh-completions] github = "zsh-users/zsh-completions" # Sourced # ------- [plugins.functions] local = "~/.zsh/plugins" [plugins.zsh-defer] github = "romkatv/zsh-defer" # Deferred plugins # ---------------- [plugins.aliases] local = "~/.zsh/plugins" apply = ["defer"] [plugins.fzf] github = "junegunn/fzf" use = ["shell/completion.zsh", "shell/key-bindings.zsh"] apply = ["defer"] # compinit must run before fzf-tab and before any plugin that calls `compdef` # (fnm, zoxide). ZLE-wrapping plugins (autosuggestions, syntax-highlighting) # must be sourced after fzf-tab. [plugins.compinit] local = "~/.zsh/plugins" apply = ["defer"] [plugins.fzf-tab] github = "Aloxaf/fzf-tab" apply = ["defer"] [plugins.zsh-autosuggestions] github = "zsh-users/zsh-autosuggestions" apply = ["defer"] use = ["{{ name }}.zsh"] [plugins.zsh-you-should-use] github = "MichaelAquilina/zsh-you-should-use" apply = ["defer"] hooks.pre = "export YSU_MODE=ALL" [plugins.forgit] github = "wfxr/forgit" apply = ["defer"] [plugins.fnm] github = "dominik-schwabe/zsh-fnm" apply = ["defer"] hooks.pre = 'export ZSH_FNM_ENV_EXTRA_ARGS="--use-on-cd --version-file-strategy recursive --resolve-engines false"' [plugins.zoxide] github = "ajeetdsouza/zoxide" apply = ["defer"] [plugins.mcfly] github = "cantino/mcfly" apply = ["defer"] [plugins.zsh-ssh] github = 'sunlei/zsh-ssh' apply = ["defer"] [plugins.zsh-syntax-highlighting] github = "zsh-users/zsh-syntax-highlighting" apply = ["defer"] # Loading indicator # ----------------- [plugins.hide] local = "~/.zsh/plugins/loading" apply = ["defer-more"]