Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configuration location #92

Open
mvolkmann opened this issue Apr 10, 2023 · 1 comment
Open

configuration location #92

mvolkmann opened this issue Apr 10, 2023 · 1 comment

Comments

@mvolkmann
Copy link

mvolkmann commented Apr 10, 2023

When I run lazygit from a terminal window it successfully gets its configuration from ~/.config/lazygit/config.yml.
But when I run it from inside of Neovim it does not read that configuration.
Do I need to create a lazygit.lua file to describe the configuration I want?
It would be great to see an example of how to translate the .yml configuration to .lua format.

Here is my current configuration:

git:
  paging:
    pager: ydiff -p cat -s --wrap --width={{columnWidth}}
@thefux
Copy link
Contributor

thefux commented May 17, 2023

Hey, it looks like u just have to tell the plugin where the configuration is located .. but weird seems like u use the default configuration path, though u can add this to ur configuration (lua)

local lazygit_config = vim.fn.resolve(<lazygit config path>)
vim.g.lazygit_use_custom_config_file_path = 1
vim.g.lazygit_config_file_path = lazygit_config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants