Skip to content

add hint how to correctly setup luarocks for luajit in neovim xor fetch artifacts in lazy #21

@matu3ba

Description

@matu3ba

I have system-setup with lua 5.4 (default).
The error :Lazy sync shows

  Failed (1)
    ● telescope-zf-native.nvim 0.11ms  start
        ...al/share/nvim/lazy/lazy.nvim/lua/lazy/manage/task/fs.lua:9: /home/misterspoon/.local/share/nvim/lazy/telescope-zf-native.nvim should be a directory!
        `lua` version `5.1` needed, but found `Lua 5.4.6  Copyright (C) 1994-2023 Lua.org, PUC-Rio`
        `lua5.1` or `lua` version `5.1` not installed

        This plugin requires `luarocks`. Try one of the following:
         - fix your `luarocks` installation
         - enable `hererocks` with `opts.rocks.hererocks = true`
         - disable `luarocks` support completely with `opts.rocks.enabled = false`

See also lazy error folke/lazy.nvim#1575

If I change my usage of lazy to require('lazy').setup('my_plugins', { pkg = { sources = "" } }), then I get

Build (1)
● telescope-zf-native.nvim 0.33ms  start     ■ needs build
    dir     /home/misterspoon/.local/share/nvim/lazy/telescope-zf-native.nvim
    url     https://github.com/natecraddock/telescope-zf-native.nvim
    version 1.0.0
    tag     v1.0.0
    branch  master
    commit  3f565ad
    readme  README.md
  ✔ [task] fetch 2058.41ms
    Anfordern des Submoduls zf
    Anfordern des Submoduls zf/lib/ziglyph
  ✔ [task] status 14.55ms
  ✔ [task] checkout 0.08ms

The problem was introduced with d746bfa.

After experimentation I found out this worked:

require('lazy').setup('my_plugins', { rocks = { enabled = false } })

However is that intended how it should be solved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions