Suggestions are invisible #181

Closed
s0r00t opened this Issue Jul 25, 2016 · 11 comments

2 participants

@s0r00t

Using latest zsh 5.2 + OMZ on x64 Arch. z-asug is loaded as a plugin.

The suggestions are not showing up : I can see the suggested character under my cursor, but nothing after it.

Setting different colors did not change anything.

@ericfreese ericfreese added the support label Jul 25, 2016
@ericfreese
zsh-users member

Take a look at #171, #172, and #174. This is very likely a color scheme issue.

@s0r00t

Setting 'fg=1' (which is red here) or any other color does not change anything, while the colors displays when using a test script.

@ericfreese
zsh-users member

Do you see the same problem when running z-asug by itself?

% zsh -f
%% source your/path/to/zsh-autosuggestions.zsh
@s0r00t

Yes.

@ericfreese
zsh-users member

Can you confirm the same problem occurs in another terminal emulator?

@s0r00t

I just tested sourcing the file in a zsh -f and exporting ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE with a different color, and the completions showed up.

The problem seems to come from .zshrc and the variable re-definition.

@ericfreese
zsh-users member

Ok, cool. Yeah, make sure you're setting the variable after the plugin is sourced.

@s0r00t

Alright, the var had to be set after sourcing OMZ.sh.

Thanks for the help ;) You might want to add something in the README about the position of the variable setting in .zshrc, when using OMZ (normally putting it anywhere in the file works), also add something to avoid more tickets about invisibles suggestions :p

@ericfreese
zsh-users member
ericfreese commented Jul 25, 2016 edited

You're welcome :) Did you see this section of the readme?

You may want to override the default global config variables after sourcing the plugin. Default values of these variables can be found here.

Note: If you are using Oh My Zsh, you can put this configuration in a file in the $ZSH_CUSTOM directory. See their comments on overriding internals.

@ericfreese ericfreese closed this Jul 25, 2016
@s0r00t

I did, but for simplicity's sake, I'm putting everything in my .zshrc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment