Open DomParfitt opened 4 years ago
These reproduction steps no longer reproduce the issue as I've added a workaround in powerlevel10k.
The problem was caused by the code in Antigen that removes local
from zsh files that it sources: https://github.com/zsh-users/antigen/blob/f5038faf456b412ef06cd17c6ae76404846d2c7e/src/lib/load.zsh#L84-L86
For example, suppose I define foo.zsh-theme
with the following content:
local -i n=42
When foo.zsh-theme
is loaded by Antigen, local
is removed, which breaks code.
Description
When I try to install the Powerlevel10k theme using Antigen I get the follow error on each key press:
Steps to reproduce
Minimal steps to reproduce this behavior. Example:
Expected behavior:
Software version
antigen version
v2.2.2zsh --version
5.4.2uname -a
Linux (WSL)Configuration
.antigenrc
- N/A.zshrc
:More information
Discussion of the issue on the P10k repo can be found here.