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

feat: add whitespace component #1218

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

9ary
Copy link

@9ary 9ary commented Mar 25, 2024

This is more or less a port of airline's extension, so I retained their copyright line and a link to the source for attribution.

Compared to the snippets on the wiki, this has extra checks (overlong lines, merge conflict markers), and it caches the result, invalidating on CursorHold or write when the buffer's been modified.
It also disables some or all checks in some conditions for performance and sanity reasons.

Compared to airline, the code is hopefully easier to read. The mixed-indent file check only ever runs one search based on the value of expandtab.

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.

None yet

1 participant