meuter / lualine-so-fancy.nvim

Small collection of _fancy_ components for the lualine.nvim plugin.
MIT License
73 stars 4 forks source link

fix(fancy_cwd): substitute_home only if cwd starts with HOME #2

Closed pysan3 closed 1 year ago

pysan3 commented 1 year ago

Hi again.

I use a shared server where there is a shared harddisk mounted at /storage and we use it with a file structure of /storage/home/username.

This contains $HOME (/home/username) but I do not think it should be substituted with ~. (It becomes /storage~.

This PR is a quick fix to substitute cwd only if it starts with $HOME.

meuter commented 1 year ago

Thanks for the fix!