Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

programs.zsh.syntaxHighlighting incorrect behaviour with ´set -o vi´ or vi plugin installed #73386

Closed
Kazimazi opened this issue Nov 14, 2019 · 0 comments

Comments

@Kazimazi
Copy link
Contributor

Kazimazi commented Nov 14, 2019

Describe the bug
While I type in insert mode syntax highlighting won't appear. If I press esc to enter normal mode or press backspace to delete a char, keywords get highlighted as expected. vi-mode is not mandatory we could achieve the bug with $ set -o vi

To Reproduce
Steps to reproduce the behavior:
Have this config:

programs.zsh = {
  enable = true;
  syntaxHighlighting.enable = true;
  ohMyZsh = {
    enable = true;
    plugins = [ "vi-mode" ];
  };
};
  1. start typing for example: $ sudo nixos-reb. The line won't have any colors to it till...
  2. press backspace, or enter normal mode

Expected behavior
Syntax gets refreshed.

Metadata
Please run nix run nixpkgs.nix-info -c nix-info -m and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 5.3.10, NixOS, 19.09.1223.cb2cdab7136 (Loris)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3`
 - channels(root): `"nixos-19.09.1223.cb2cdab7136, nixos-unstable-20.03pre200231.7827d3f4497"`
 - channels(kazimazi): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@Kazimazi Kazimazi changed the title programs.zsh.syntaxHighlighting incorrect behaviour with other vi-mode plugin installed programs.zsh.syntaxHighlighting incorrect behaviour with ´set -o vi´ or vi plugin installed Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants