LazyVim.LazyVim/lua/lazyvim
Zhou Fang e50b43544f
fix(lualine): dynamically fetch the color used in lualine (#4788)
## Description

The color used in lualine was previously static and did not update
dynamically when a new colorscheme was applied. This resulted in
inconsistencies between the theme and the lualine colors, as the 'local'
color table returned the highlight color defined during initialization.

This pull request resolves the issue by ensuring that the lualine colors
are always in sync with the current colorscheme. It achieves this by
using `LazyVim.ui.fg(HIGHLIGHT)` to dynamically fetch the appropriate
highlight colors, making the lualine colors responsive to colorscheme
changes.

## Related Issue(s)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

**Before**


![image](https://github.com/user-attachments/assets/6b78483b-4a64-4ec3-a902-a0d1ed10a992)

**After**


![image](https://github.com/user-attachments/assets/3f73ec26-cbf1-4ff7-873f-6c7b2c13c481)

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-11-14 15:53:27 +01:00
..
config feat(extras): add supermaven (#3491) 2024-11-13 17:49:47 +01:00
plugins fix(fzf): decouple defaults from opts to easy switch profiles (#4190) 2024-11-13 19:20:48 +01:00
util fix(lualine): dynamically fetch the color used in lualine (#4788) 2024-11-14 15:53:27 +01:00
health.lua fix(health): add warning when not using 0.10.0 2024-05-16 21:25:51 +02:00
init.lua fix: add shim for vim.uv just in case someone upgrades lazyvim before lazy 2024-03-22 10:30:35 +01:00
types.lua style: better types for vim.api.nvim_create_autocmd 2024-06-07 23:02:47 +02:00