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

Merged
merged 4 commits into from
Jul 15, 2024

Conversation

sergiuser1
Copy link
Contributor

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
Contributor 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
Contributor Author

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

@sergiuser1
Copy link
Contributor Author

@shadmansaleh ping

@shadmansaleh
Copy link
Member

Thanks. Sorry for the late reply.

@shadmansaleh shadmansaleh merged commit be2d876 into nvim-lualine:master Jul 15, 2024
5 checks passed
@sergiuser1
Copy link
Contributor Author

Thanks!

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