small refactoring

This commit is contained in:
thefux
2022-03-06 11:18:41 +01:00
parent eb880dcd4d
commit b419f3e8d1
4 changed files with 203 additions and 146 deletions

View File

@@ -3,7 +3,7 @@ local finders = require("telescope.finders")
local action_set = require("telescope.actions.set")
local action_state = require("telescope.actions.state")
local conf = require("telescope.config").values
local lazygit = require("lazygit")
local lazygit_utils = require("lazygit.utils")
local function open_lazygit(prompt_buf)
@@ -31,7 +31,7 @@ local lazygit_repos = function(opts)
}
local repos = {}
for _, v in pairs(lazygit.lazygit_visited_git_repos) do
for _, v in pairs(lazygit_utils.lazygit_visited_git_repos) do
local index = #repos + 1
-- retrieve git repo name
local entry =