mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-03 22:14:39 +02:00
## Description This is a small fix to the path truncating in `LazyVim.lualine.pretty_path()` to make the filename highlighting actually apply to only the filename, rather than the filename and all path elements after the inserted ellipsis (`…`). This keeps it consistent with the behaviour exhibited when the path isn't truncated, and is what I think most users would expect the behaviour to be. ## Screenshots Before this fix: <img width="320" alt="image" src="https://github.com/user-attachments/assets/d708a140-2b23-457a-a296-dd411d29d268"> ``` nvim/…/nvim/lua/plugins/lazyvim/ui.lua └──┬──┘└──────────────┬──────────────┘ directory_hl filename_hl ``` After this fix: <img width="319" alt="image" src="https://github.com/user-attachments/assets/e9d13fdd-79a8-4e3d-942a-58d0e2bb8bca"> ``` nvim/…/nvim/lua/plugins/lazyvim/ui.lua └──────────────┬───────────────┘└─┬──┘ directory_hl filename_hl ``` ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines. |
||
---|---|---|
.. | ||
cmp.lua | ||
deprecated.lua | ||
extras.lua | ||
format.lua | ||
init.lua | ||
inject.lua | ||
json.lua | ||
lsp.lua | ||
lualine.lua | ||
mini.lua | ||
news.lua | ||
pick.lua | ||
plugin.lua | ||
root.lua | ||
terminal.lua | ||
ui.lua |