jesseduffield / jesseduffield/lazygit
config file is completely ignored
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
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:
```yaml
gui:
sidePanelWidth: 0.6
expandFocusedSidePanel: true
showFileTree: false
```
run `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 --version` and 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 --version ` and 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](https://github.com/jesseduffield/lazygit/#manual) the latest `master` to see if the issue still occurs.
Contributor guide
Assessment
This issue has not been assessed yet.