Please include a detailed description of the issue (and an image or screen recording, if applicable)
I use zinit to manage my CLI plugins, one of my plugins is zsh-autosuggestions check the following .zshrc config:
# Zsh plugins
# ...
## autocompletion & autosuggestions
zi wait lucid light-mode atload'_zsh_autosuggest_start' for \
zsh-users/zsh-autosuggestions
# ...
This command wait for 0s -to speed up terminal loading- then load zsh-autosuggestions and then call _zsh_autosuggest_start function.
This procedure cause issue with fig autocomplete menu, where it's not showed up unless I start a new line with pressing Enter. If I disable the plugin fig works fine, also if I use the normal loading (without waiting) fig works fine.
zi light zsh-users/zsh-autosuggestions
I tried to increase the waiting time zi wait'5' .. fig works fine until the plugin is loaded, then only plugin auto complete shows and fig menu stop showing.
Details:
macOS
Fig
Shell
12.3.1
Version 1.0.57 (B440)
/bin/zsh
fig diagnostic
Version 1.0.57 (B440) [U.S.]
UserShell: /bin/zsh
Bundle path: /Applications/Fig.app
Autocomplete: true
Settings.json: true
CLI installed: true
CLI tool path: /Users/ali/.fig/bin/fig
Accessibility: true
SSH Integration: false
Tmux Integration: false
iTerm Integration: true [Authenticated]
Hyper Integration: false
VSCode Integration: true
Docker Integration: false
Symlinked dotfiles: false
Only insert on tab: false
UNIX Socket Exists: true
Installation Script: true
PseudoTerminal Path: /Users/ali/.zinit/polaris/bin:/Users/ali/.rvm/gems/ruby-2.6.3/bin:/Users/ali/.rvm/gems/ruby-2.6.3@global/bin:/Users/ali/.rvm/rubies/ruby-2.6.3/bin:/Users/ali/.nvm/versions/node/v8.17.0/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/ali/.fig/bin:/Users/ali/.local/bin:/Users/ali/Library/Android/sdk/platform-tools:/Users/ali/Library/Android/sdk/build-tools:/Users/ali/Developer/Go/bin:/Users/ali/.rvm/bin
SecureKeyboardInput: false
SecureKeyboardProcess:
Current active process: zsh (1014) - /dev/ttys001
Current terminal session: w0t0p0:00D5C8BF-2C18-4B62-8A2A-9A52C289E117
Current working directory: /Users/ali
Current window identifier: 126/% (com.googlecode.iterm2)
Description:
I use zinit to manage my CLI plugins, one of my plugins is zsh-autosuggestions check the following
.zshrc
config:This command wait for 0s -to speed up terminal loading- then load
zsh-autosuggestions
and then call_zsh_autosuggest_start
function.This procedure cause issue with fig autocomplete menu, where it's not showed up unless I start a new line with pressing Enter. If I disable the plugin fig works fine, also if I use the normal loading (without waiting) fig works fine.
I tried to increase the waiting time
zi wait'5' ..
fig works fine until the plugin is loaded, then only plugin auto complete shows and fig menu stop showing.Details:
fig diagnostic