fix: store win and buffer for :LazyGitFilter command
This commit is contained in:
@@ -116,7 +116,7 @@ local function lazygitfilter(path)
|
|||||||
path = project_root_dir()
|
path = project_root_dir()
|
||||||
end
|
end
|
||||||
prev_win = vim.api.nvim_get_current_win()
|
prev_win = vim.api.nvim_get_current_win()
|
||||||
open_floating_window()
|
win, buffer = open_floating_window()
|
||||||
local cmd = "lazygit " .. "-f " .. path
|
local cmd = "lazygit " .. "-f " .. path
|
||||||
exec_lazygit_command(cmd)
|
exec_lazygit_command(cmd)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user