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 BOM indicator to encoding component #1228

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sergiuser1
Copy link

Inspired by vim-airline, it adds [BOM] to the encoding if the file uses byte-order mark

@shadmansaleh
Copy link
Member

Does vim/neovim's builtin statusline show this by default? if not can you put it behind an option, set default to false?

@sergiuser1
Copy link
Author

By default it doesn't have anything about file encoding, I found this about making a custom component: https://stackoverflow.com/a/10416234/11710862

I'll add the option and some tests and will update the PR.

Copy link

Warning: This pull request is touching the following templated files:

  • doc/lualine.txt - lualine.txt is generated from README.md. Make changes there instead.

@sergiuser1
Copy link
Author

@shadmansaleh I've made it optional with the default being false, and I've added tests.

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

2 participants