folke / trouble.nvim

🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
Apache License 2.0
5.11k stars 173 forks source link

bug: Error message about loop vs ev in neovim 0.9 #513

Closed timborodin closed 2 weeks ago

timborodin commented 2 weeks ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.9.5

Operating system/version

Fedora

Describe the bug

Error is shown when Trouble is used. Introduced in recent commit it seems, in utils.lua:

function M.is_win()
  return vim.uv.os_uname().sysname:find("Windows") ~= nil
end

Should use local uv variable here instead of vim.uv it seems. Fixing it locally fixes error message.

Thank you!

Steps To Reproduce

do Trouble lsp_references in neovim 0.9.5

Expected Behavior

No errors shown

Repro

No response