Skip to content

file_encoding

Zeioth edited this page Feb 23, 2024 · 7 revisions

You can add this component to the statusline section of heirline opts.

require("heirline-components.all").component.file_encoding()

You will see it like file format + file encoding screenshot_2024-02-22_16-49-52_253976183

Available providers

These are the available providers for this component and its options.

file_format = { padding = { left = 1, right = 0 } },   -- if set, displays the OS the current buffer is currently encoded for.
file_encoding = { padding = { left = 1, right = 0 } }, -- if set, displays the encoding format the current buffer currently has.
Clone this wiki locally