7 Commits

Author SHA1 Message Date
Carlos Calla Alarcón
4839ab6429 update deprecated vim api usage (#152)
The `vim.loop` prop is deprecated and will be removed at Nvim 1.0. This
PR adds support for the new `vim.uv` prop instead but keeps backward
compatibility with previous versions of Nvim.
2025-06-13 09:54:25 -04:00
luca-sartore-prorob
77a0d42943 fix: explicitly use cmd on windows to avoid problem using powershell (#145)
If a user is on windows, and is using powershell as the default nvim
shell the command at [line 69 of
utils.lua](https://github.com/lucaSartore/lazygit.nvim/blob/main/lua/lazygit/utils.lua#L67C2-L67C130)
won’t work due to the `&&` operator.
> local cmd = string.format('cd "%s" && git rev-parse --show-toplevel',
fn.fnamemodify(fn.resolve(fn.expand('%:p')), ':h'), root)

I fixed this by forcing the use of cmd.
2024-12-12 08:06:41 -05:00
Srivatsan Ramaswamy
de35012036 feat: Add support for multiple lazygit config files
Lazygit supports using multiple config files: https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md?plain=1#L346

This commit adds code to parse vim.g.lazygit_config_file_path as a `string | table`,
then passes the files to `lazygit` via the `-ucf` flag
2023-09-26 00:30:26 -04:00
Roger Kim
75c920883f fix: Cover missing edge case in resetting user's preferred shell 2023-09-05 18:46:07 -04:00
cnrrobertson
bed8d6df13 parametrize get_root to be used in different directories 2022-10-25 16:15:50 -04:00
thefux
da9bafc2f0 clean up and add some ducumentation 2022-03-06 15:05:18 +01:00
thefux
b419f3e8d1 small refactoring 2022-03-06 11:18:41 +01:00