mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
fix(rocks): better errors / warnings when something goes wrong with luarocks
This commit is contained in:
parent
9005e8ede7
commit
7d3f69104f
11 changed files with 336 additions and 141 deletions
|
@ -464,10 +464,8 @@ function M.add_to_rtp(plugin)
|
|||
local rtp = vim.api.nvim_get_runtime_file("", true)
|
||||
local idx_dir, idx_after
|
||||
|
||||
local is_win = jit.os:find("Windows")
|
||||
|
||||
for i, path in ipairs(rtp) do
|
||||
if is_win then
|
||||
if Util.is_win then
|
||||
path = Util.norm(path)
|
||||
end
|
||||
if path == Config.me then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue