nvim-lualine / lualine.nvim

A blazing fast and easy to configure neovim statusline plugin written in pure lua.
MIT License
6.02k stars 462 forks source link

feat: Add BOM indicator to encoding component #1228

Closed sergiuser1 closed 2 months ago

sergiuser1 commented 5 months ago

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

shadmansaleh commented 5 months ago

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

sergiuser1 commented 5 months ago

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.

generated-files-bot[bot] commented 5 months ago

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

sergiuser1 commented 5 months ago

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

sergiuser1 commented 2 months ago

@shadmansaleh ping

shadmansaleh commented 2 months ago

Thanks. Sorry for the late reply.

sergiuser1 commented 2 months ago

Thanks!