Completions not working without OMZ #196
-
I am currently using antidote and have OMZ enabled as well. Here are my configs: #.zshrc
ZSH_THEME=""
# Load antidote and plugins
source ~/.antidote/antidote.zsh
antidote load
# Load pure theme
autoload -Uz promptinit && promptinit && prompt pure #.zsh_plugins.txt
getantidote/use-omz # handle OMZ dependencies
ohmyzsh/ohmyzsh path:lib # load OMZ's library
# prompts:
sindresorhus/pure kind:fpath
# plugins
lukechilds/zsh-nvm kind:defer
# marlonrichert/zsh-autocomplete kind:defer
zsh-users/zsh-completions kind:defer
zdharma-continuum/fast-syntax-highlighting kind:defer
zsh-users/zsh-autosuggestions kind:defer This works perfectly. But I want to load these plugins without OMZ as I think OMZ slows the loading. So I tried the following as specified in the antidote documentation: #.zsh_plugins.txt
# marlonrichert/zsh-autocomplete kind:defer
zsh-users/zsh-completions kind:defer
belak/zsh-utils path:completion
# prompts:
sindresorhus/pure kind:fpath
# plugins
lukechilds/zsh-nvm kind:defer
zdharma-continuum/fast-syntax-highlighting kind:defer
zsh-users/zsh-autosuggestions kind:defer But this doesn't work. Also |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Thank you for opening this discussion! It's the push I needed to finally release a new mattmc3/ez-compinit plugin. When I first created antidote, I was fully committed to antidote not treating any plugins or frameworks in special ways, same as its predecessor antibody. A Zsh plugin is a plugin, so if plugins don't interact well then that's not an antidote problem. I'm still fully committed to that. But, the trouble has been that while that makes for a much better plugin manager, it makes for a much worse user experience. I fixed that experience for OMZ users by releasing the getantidote/use-omz plugin which helps antidote users of OMZ, but compinit is still a pain for non-OMZ users. So, now there's a stand alone plugin you can use mattmc3/ez-compinit. It's not antidote specific which is why it's not hosted on getantidote - it's a general use Zsh plugin, but it solves a lot of issues users of antidote have. I'll be updating the antidote docs today to recommend this plugin for setting up completions. Give it a try and let me know what you think. Your .zsh_plugins.txt should look like this:
I also really don't recommend using |
Beta Was this translation helpful? Give feedback.
If you use "mattmc3/ez-compinit", then "belak/zsh-utils path:completion" is redundant. No reason to have both.
After reading the README for "marlonrichert/zsh-autocomplete", there's a bunch of extra setup you need to do, like adding variables to your .zshenv and settings to .zshrc. You might find you don't need "mattmc3/ez-compinit" at all with that plugin. Try commenting out items in your zsh_plugins.txt and slowly adding back to see what breaks. At this point, it's clearly a problem with conflicting plugins or incorrect setup, not anything antidote does.