1cdddc2456
* feat: add option to invert component icon alignment Invert component status icon if variable is set `icon_right = true`. * refactor: use string for icon alignment Change conditional variable for icon left/right alignment from Boolean to `icon_alignment = 'right'`. * refactor: check icon table for alignment variable Determine component status output from icon_alignment variable. Provides alignment variables for generic component and filetype devicons. `component = { 'name', icon = {'*', align = 'right'} }` `component = { 'filetype', icon_alignment = 'right' }` * style: restore previous formatting on line 79 * refactor: set `self.option.icon` as table * fix: forgot non-color icon alignment * fix: remove redundant variable assignment * docs: add README examples for icon alignment Include configuration examples for icon alignment to README file. * test: add test for filetype components icon align Ensure testability for filetype icons being aligned to right side. |
||
---|---|---|
.. | ||
branch | ||
buffers | ||
diagnostics | ||
diff | ||
special | ||
tabs | ||
windows | ||
encoding.lua | ||
fileformat.lua | ||
filename.lua | ||
filesize.lua | ||
filetype.lua | ||
hostname.lua | ||
location.lua | ||
mode.lua | ||
progress.lua |