From 89e3f7f93ae99694d379b5c6bd1ac907e9a4d34a Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 21 Nov 2023 14:45:12 +1100 Subject: [PATCH] Init Zoxide after compinit so its compdef works --- dot-config/zsh/zimrc.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dot-config/zsh/zimrc.zsh b/dot-config/zsh/zimrc.zsh index c27a05e..fb8db06 100644 --- a/dot-config/zsh/zimrc.zsh +++ b/dot-config/zsh/zimrc.zsh @@ -35,14 +35,16 @@ zmodule zsh-users/zsh-autosuggestions (( ${+commands[brew]} )) && zmodule homebrew zeval-if-installed direnv 'direnv hook zsh' -zeval-if-installed zoxide 'zoxide init zsh' # Additional completion definitions for Zsh. zmodule zsh-users/zsh-completions --fpath src # Enables and configures smart and extensive tab completion. -# completion *must* be sourced after all modules that add completion definitions. +# completion *must* be sourced after all modules that add completion definitions to fpath. zmodule completion +# Initialise Zoxide after compinit, because it calls compdef if available. +zeval-if-installed zoxide 'zoxide init zsh' + # Fish-style syntax highlighting as you type, making the Zsh experience much more friendly! zmodule zdharma-continuum/fast-syntax-highlighting