Skip to content

file_encoding

Zeioth edited this page Feb 22, 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 =  {} -- if set, displays the OS the file is currently encoded for.
file_encoding =  {} -- if set, displays the file encoding format.
Clone this wiki locally