We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93c480a commit 798a7dfCopy full SHA for 798a7df
lua/python_import/utils.lua
@@ -99,8 +99,8 @@ local function find_python_first_party_modules(bufnr)
99
local files = vim.fn.readdir(dir)
100
for _, file in ipairs(files) do
101
local path = dir .. "/" .. file
102
- local stat = vim.loop.fs_stat(path)
103
- if stat.type == "directory" then
+ local stat = (vim.uv or vim.loop).fs_stat(path)
+ if stat ~= nil and stat.type == "directory" then
104
-- no egg-info
105
if file:match "%.egg%-info$" == nil then
106
modules[#modules + 1] = file
0 commit comments