mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-01 08:35:06 +02:00
fix(git): use compatible function for windows and linux (#2740)
This commit is contained in:
parent
0107a1079b
commit
42a7e79d5a
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ map("n", "<leader>gg", function() Util.terminal({ "lazygit" }, { cwd = Util.root
|
|||
map("n", "<leader>gG", function() Util.terminal({ "lazygit" }, {esc_esc = false, ctrl_hjkl = false}) end, { desc = "Lazygit (cwd)" })
|
||||
|
||||
map("n", "<leader>gf", function()
|
||||
local git_path = vim.fn.system("git ls-files --full-name " .. vim.api.nvim_buf_get_name(0))
|
||||
local git_path = vim.api.nvim_buf_get_name(0)
|
||||
Util.terminal({ "lazygit", "-f", vim.trim(git_path) }, { esc_esc = false, ctrl_hjkl = false })
|
||||
end, { desc = "Lazygit current file history" })
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue