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

:highlight Normal reports "Last set from" non-existing file (with -V1) #28556

Open
ernstwi opened this issue Apr 28, 2024 · 3 comments
Open

:highlight Normal reports "Last set from" non-existing file (with -V1) #28556

ernstwi opened this issue Apr 28, 2024 · 3 comments
Labels
bug issues reporting wrong behavior lua stdlib
Milestone

Comments

@ernstwi
Copy link

ernstwi commented Apr 28, 2024

Problem

When I start Neovim with the -V1 flag, and then do :highlight Normal, it reports that this highlight group was last set from a file <current working directory>/vim/_defaults.lua (which does not exist). It happens regardless of what the current directory is.

This does not occur for all highlight groups, e.g. not for Cursor. My guess would be that it only happens for highlight groups set from the default theme?

Steps to reproduce

nvim --clean -V1
:highlight Normal

Expected behavior

"Last set from" should either not appear at all, or point to the location of the default theme? Not sure.

Neovim version (nvim -v)

NVIM v0.10.0-dev-3032+g61063653b-Homebrew (commit 6106365)

Vim (not Nvim) behaves the same?

No, vim 9.0.1544

Operating system/version

macOS 13.5.2

Terminal name/version

kitty 0.31.0

$TERM environment variable

xterm-kitty

Installation

brew install --HEAD neovim

@ernstwi ernstwi added the bug issues reporting wrong behavior label Apr 28, 2024
@clason
Copy link
Member

clason commented Apr 28, 2024

Can't reproduce this. Please check your repro steps.

brew install --HEAD neovim

And this is supported neither by us nor by homebrew. Please use the official nightly releases or build from source.

@zeertzjq
Copy link
Member

zeertzjq commented Apr 28, 2024

This happens with a light terminal background.

@zeertzjq
Copy link
Member

Actually, this applies to default mappings as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior lua stdlib
Projects
None yet
Development

No branches or pull requests

4 participants