fix: directory hijacking when oil is lazy loaded (#149)

This commit is contained in:
Steven Arcangeli 2023-08-09 00:36:33 -07:00
parent 887bb4a8b6
commit 966eaaadbc
2 changed files with 16 additions and 5 deletions

View file

@ -5,6 +5,8 @@ local timers = {}
local FPS = 20
---@param bufnr integer
---@return boolean
M.is_loading = function(bufnr)
return timers[bufnr] ~= nil
end
@ -56,6 +58,8 @@ M.get_bar_iter = function(opts)
end
end
---@param bufnr integer
---@param is_loading boolean
M.set_loading = function(bufnr, is_loading)
if is_loading then
if timers[bufnr] == nil then