lualine.nvim icon indicating copy to clipboard operation
lualine.nvim copied to clipboard

feat: Add BOM indicator to encoding component

Open sergiuser1 opened this issue 1 year ago • 4 comments

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

sergiuser1 avatar Apr 11 '24 17:04 sergiuser1

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

shadmansaleh avatar Apr 17 '24 02:04 shadmansaleh

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.

sergiuser1 avatar Apr 21 '24 14:04 sergiuser1

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

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

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

sergiuser1 avatar Apr 28 '24 14:04 sergiuser1

@shadmansaleh ping

sergiuser1 avatar Jul 13 '24 14:07 sergiuser1

Thanks. Sorry for the late reply.

shadmansaleh avatar Jul 15 '24 06:07 shadmansaleh

Thanks!

sergiuser1 avatar Jul 15 '24 08:07 sergiuser1