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

fix: do not setup colors in headless mode #624

Conversation

PriceHiller
Copy link
Contributor

Prior to this PR headless & embed Neovim environments would throw an error in some scenarios. This PR adds a guard statement (with a forceable override) to not setup the highlights if we detect we're within a headless or embedded Neovim instance.

Closes #622

This also allows us to forcefully setup the highlights if absolutely
required. Tests, for instance.
@PriceHiller
Copy link
Contributor Author

Since #617 got merged this is unnecessary as the fallbacks fix the issue this seeks to solve.

Closing.

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.

neogit returns errors in headless mode in the hl.make_palette function
1 participant