From 0355707038f00a82c898f4032cc38a5681ae1e24 Mon Sep 17 00:00:00 2001 From: Emil Marklund Date: Tue, 5 Mar 2019 13:55:25 +0100 Subject: [PATCH] Fix delay when pasting long lines See https://github.com/zsh-users/zsh-syntax-highlighting/issues/295 --- .zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zshrc b/.zshrc index cdea6e9..ee9270f 100644 --- a/.zshrc +++ b/.zshrc @@ -252,6 +252,11 @@ fi # BE AWARE: MUST BE LOADED LAST if [ -f "$ZSH_CUSTOM/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh" ]; then plugins+=(zsh-syntax-highlighting) + # Due to the following issue: + # https://github.com/zsh-users/zsh-syntax-highlighting/issues/295 + # Syntax highlighting is really slow when pasting long text. This speeds it + # up to just a slight delay + zstyle ':bracketed-paste-magic' active-widgets '.self-*' fi # ╻ ┏━┓┏━┓╺┳┓ ┏━┓╻ ╻ ┏┳┓╻ ╻ ╺━┓┏━┓╻ ╻ # ┃ ┃ ┃┣━┫ ┃┃ ┃ ┃┣━┫╺━╸┃┃┃┗┳┛╺━╸┏━┛┗━┓┣━┫