zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
2.95k stars 126 forks source link

[bug]: zinit+powerlevel10k > ctl-k > Symbol index NOT found... #388

Closed dvessel closed 1 year ago

dvessel commented 1 year ago

What happened?

Hitting control-k to clear a line shows this warning: Symbol index NOT found, NO DATA to show, sleeping… This only happens with powerlevel10k loaded.

I’m using iTerm on MacOS Monterey 12.6 and it uses keyboard shortcuts borrowed from Emacs. Ctrl-K is supposed to clear the line to the right of the cursor but I get an orange notice instead.

It started happening after 17fd453dc1.

Steps to reproduce

  1. Install any version that includes 17fd453dc1.
  2. powerlevel10k should be loaded.
  3. Ctrl-K at any time.

Relevant output

Symbol index NOT found, NO DATA to show, sleeping…

Screenshots and recordings

image

Operating System & Version

OS: darwin21.0 | Vendor: apple | Machine: x86_64 | CPU: arm64 | Processor: arm | Hardware: arm64

Zsh version

zsh 5.8.1 (x86_64-apple-darwin21.0)

Terminal emulator

xterm-256color

If using WSL on Windows, which version of WSL

No response

Additional context

Part of my .zshrc file

# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
p10k_cpath="${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
[ ! -f $p10k_cpath ] || source $p10k_cpath

# Source zinit. It's available in homebrew but it's not officially supported.
# Install manually: https://github.com/zdharma-continuum/zinit
zinit_home="${XDG_DATA_HOME:-$HOME/.local/share}/zinit/zinit.git"
[ ! -f $zinit_home/zinit.zsh ] || source $zinit_home/zinit.zsh

if type zinit &>/dev/null; then

  # https://github.com/romkatv/powerlevel10k
  zinit ice depth"1"; zinit light romkatv/powerlevel10k
  # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
  [ ! -f $HOME/.p10k.zsh ] || source $HOME/.p10k.zsh

  # https://github.com/Aloxaf/fzf-tab
  # NOTE: fzf-tab needs to be loaded after compinit, but before plugins which
  # will wrap widgets, such as zsh-autosuggestions or fast-syntax-highlighting!!
  zinit ice depth"1"; zinit light Aloxaf/fzf-tab

  # https://github.com/zdharma-continuum/fast-syntax-highlighting
  zinit ice depth"1"; zinit light zdharma-continuum/fast-syntax-highlighting

  # https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins
  zinit snippet OMZ::plugins/extract
  zinit snippet OMZ::plugins/fancy-ctrl-z
  zinit snippet OMZ::plugins/transfer
  zinit snippet OMZ::plugins/universalarchive

fi

Code of Conduct

dvessel commented 1 year ago

I initially filed a bug report with p10k but it was suggested that I post this here.

https://github.com/romkatv/powerlevel10k/issues/2040

dvessel commented 1 year ago

This was already raised in #386 and fixed in #387. Closing.