-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
Describe the bug
No matter what I put in ~/.config/lazygit/config.yml it does not have any effect.
To Reproduce
Steps to reproduce the behavior:
create ~/.config/lazygit/config.yml with following content:
gui:
sidePanelWidth: 0.6
expandFocusedSidePanel: true
showFileTree: falserun lazygit: the above config does not take effect
Expected behavior
Config should be loaded
Screenshots
If applicable, add screenshots to help explain your problem.
Version info:
- Run
lazygit --versionand paste the result here
commit=, build date=, build source=nix, version=0.56.0, os=linux, arch=amd64, git version=2.51.2
- Run
git --versionand paste the result here
git version 2.51.2
Additional context
Add any other context about the problem here.
when I set LG_CONFIG_FILE, config gets loaded correctly:
LG_CONFIG_FILE=~/.config/lazygit/config.yml
I did check that LG_CONFIG_FILE is not set in my shell:
> set -u; echo $LG_CONFIG_FILE
bash: LG_CONFIG_FILE: unbound variable
Not sure if there are any other env vars which could affect loading of config.
I would be grate if some DEBUG logging was added in the code which loads the config to facilitate debugging cases like this.
Also, a flag --printResolevedConfig, which would show final config (as opposed to default which --config prints) would be useful.
Note
Please try updating to the latest version or manually building the latest master to see if the issue still occurs.