lualine.nvim/lua/lualine/components
Daemon 1cdddc2456
feat: add option to invert component icon alignment (#666)
* 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.
2022-04-30 16:10:47 +06:00
..
branch fix: % not properly escaped in other components too. 2022-02-15 23:17:05 +06:00
buffers enhace: add create&format_hl to make hl easier for componemet 2022-04-18 05:20:29 +06:00
diagnostics enhace: add create&format_hl to make hl easier for componemet 2022-04-18 05:20:29 +06:00
diff enhace: add create&format_hl to make hl easier for componemet 2022-04-18 05:20:29 +06:00
special chore: Use paranthesis for function calls. No paran can trip new lua users 2022-01-02 17:38:39 +06:00
tabs enhace: add create&format_hl to make hl easier for componemet 2022-04-18 05:20:29 +06:00
windows Use escape sequence instead of raw binaries (#662) 2022-04-24 11:29:53 +06:00
encoding.lua enhance: change method of getting file encoding 2021-10-22 21:18:27 +06:00
fileformat.lua feat: add symbols option to fileformat (#401) 2021-10-27 03:04:53 +06:00
filename.lua fix(filename): use columns for shortening if using global statusline (#617) 2022-03-18 20:08:52 +06:00
filesize.lua feat: live filesize (#649) 2022-04-14 10:41:59 +06:00
filetype.lua feat: add option to invert component icon alignment (#666) 2022-04-30 16:10:47 +06:00
hostname.lua fix: % not properly escaped in other components too. 2022-02-15 23:17:05 +06:00
location.lua enhance: use virtual column(%v) for location and line no (%p) for progress 2021-10-22 09:45:26 +06:00
mode.lua enhance: allow components to be functions too (#81) 2021-10-11 16:41:25 +06:00
progress.lua enhance: use virtual column(%v) for location and line no (%p) for progress 2021-10-22 09:45:26 +06:00