Skip to content

Conversation

@crackcomm
Copy link

The UIEnter event is not needed for setting up the highlight groups in cmp.lua.

This caused a bug displaying ANSI escape sequences in neovim in tmux, kitty, and alacritty.

I found this bug after 2 days of debugging, searching for the cause in the wrong place - zsh, tmux, kitty, then testing on alacritty and xterm, and finally realizing that the issue was in the Neovim configuration itself.

If this does not in fact fix the issue, even though I tested it thoroughly, it is still a redundant call in my opinion, especially since ColorScheme event is immediately triggered after the subscription.

The UIEnter event is not needed for setting up the
highlight groups in cmp.lua.

This caused a bug displaying ANSI escape sequences in
neovim in tmux, kitty, and alacritty.

I found this bug after 2 days of debugging, searching for
the cause in the wrong place - zsh, tmux, kitty, then
testing on alacritty and xterm, and finally realizing
that the issue was in the Neovim configuration itself.

If this does not in fact fix the issue, even though I
tested it thoroughly, it is still a redundant call
in my opinion, especially since `ColorScheme` event
is immediately triggered after the subscription.
@crackcomm
Copy link
Author

I notice that it is a fix for #1649, maybe it's appropriate to keep this functionality for vim.fn.has('headless') == 1 - I'm not sure.

@wsdjeg
Copy link
Collaborator

wsdjeg commented Oct 18, 2025

neovim supports has('headless')?

maybe you can check v:argv, use if vim.tbl_contains(vim.v.argv, '--headless') then end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants