nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.42k stars 286 forks source link

fix(#1482): adds the ability to set a prefix to winbar #1485

Open adriancmiranda opened 3 weeks ago

adriancmiranda commented 3 weeks ago

Context

The previous implementation included the prefix in the folder icons, which was not the intended behavior. This change corrects that mistake (that I made) and improves the flexibility of how the winbar is rendered. The new implementation ensures that folder icons are displayed according to user settings without unnecessary prefixing.

Summary of Changes

This PR includes the following changes:

Testing

A basic test has been added to verify that the winbar correctly reflects the user-defined prefix and handles folder icons appropriately. The test checks the following:

Review Instructions

Please review the changes, especially the new logic for handling winbar_prefix and folder icons. Ensure that the winbar behaves as expected and that the new highlight group integrates seamlessly with the existing themes.