Skip to content

fix: only warn for termguicolors if version minor < 10 #239

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

Merged
merged 1 commit into from
Dec 28, 2023
Merged

fix: only warn for termguicolors if version minor < 10 #239

merged 1 commit into from
Dec 28, 2023

Conversation

seblyng
Copy link
Contributor

@seblyng seblyng commented Dec 27, 2023

Neovim now sets termguicolors default to true if the terminal supports it. However, the option is not set until VimEnter, and this means that reading the value of termguicolors will always be false if the user has not set it in their config.

After I removed the unnecessary default option after updating neovim, I always get the warning now.

Check the version as well before warning since termguicolors is now set to true by default if the terminal supports it

@rcarriga
Copy link
Owner

Thanks for the PR!

@rcarriga rcarriga merged commit ebcdd82 into rcarriga:master Dec 28, 2023
@seblyng seblyng deleted the termguicolors branch December 28, 2023 11:08
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