lualine.nvim/lua/lualine/components
Shadman 37a314b9e3
feat: add support for dynamic color with functions in color options (#566)
* feat: allow functions in color options.

* update_evilline

* docs: document color functions

* remove unnecesery stuff

* add dynamic color supoort for themes

* chore: autogen (vimdocs+formating)

* fix dynamic colors not working as color fallback

* fix transitional separators not updating for dynamic colors dynamic colors

* fix failing tests

* apply format

* Allow cases where theme doesn't even define nornal color for some mode

* allow color function to return nil

* some enhancements

* more enhancements

* code cleanup

* if we don't have even normal in theme we should just nvim highlight it with it's ususal stl colors

* not sure how it get here . It should be in different pr

* keep only c of lualine_c in component section name

* use sh to run docgen

* fix filetype component not respecting color option properly

* fix section x,y,z not falling back to correct colors

* auto format

* actually fix xyz not falling back to correct mode

* fix comp sep not correctly removed properly on function hl

* pass only section in color fn

* more enhancements

* update docs

* update create_comp_hl call locations

* enhancements+fixes

* fix broken hls in tabline

* Fix function color options not inheriting right colors

* some enhancements

* fix tests

* tweek docs

Co-authored-by: shadmansaleh <shadmansaleh@users.noreply.github.com>
2022-03-02 19:37:08 +06:00
..
branch fix: % not properly escaped in other components too. 2022-02-15 23:17:05 +06:00
buffers feat: add support for dynamic color with functions in color options (#566) 2022-03-02 19:37:08 +06:00
diagnostics feat: add support for dynamic color with functions in color options (#566) 2022-03-02 19:37:08 +06:00
diff feat: add support for dynamic color with functions in color options (#566) 2022-03-02 19:37:08 +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 feat: add support for dynamic color with functions in color options (#566) 2022-03-02 19:37:08 +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: % in filename not escaped properly. 2022-02-15 22:54:29 +06:00
filesize.lua chore: Use paranthesis for function calls. No paran can trip new lua users 2022-01-02 17:38:39 +06:00
filetype.lua feat: add support for dynamic color with functions in color options (#566) 2022-03-02 19:37:08 +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