Giter Club home page Giter Club logo

Comments (8)

folke avatar folke commented on August 16, 2024 2

luarocks for NEovim plugins requires Lua 5.1, that is completely correct.

from lazy.nvim.

folke avatar folke commented on August 16, 2024 2

Yes, you need 5.1. This is the last time I'll answer this question.

from lazy.nvim.

folke avatar folke commented on August 16, 2024 1

As is explained in the healthcheck, you can just enable hererocks instead

from lazy.nvim.

rmacklin avatar rmacklin commented on August 16, 2024 1

In case it's helpful to anyone, mise can be used to install lua 5.1 (with luarocks):

mise plugins add lua
mise use -g [email protected]

after which luarocks should be available from ~/.local/share/mise/installs/lua/5.1/luarocks/bin/luarocks and :checkhealth in neovim won't show any errors or warnings about luarocks.

from lazy.nvim.

folke avatar folke commented on August 16, 2024

I've improved the health check to show steps you can do to fix your luarocks installation.

image

from lazy.nvim.

kevinrobayna avatar kevinrobayna commented on August 16, 2024

luarocks for NEovim plugins requires Lua 5.1, that is completely correct.

oh! ok thank you! I wanted to create the ticket more of a question as I wasn't sure.

from lazy.nvim.

kevinm6 avatar kevinm6 commented on August 16, 2024

luarocks for NEovim plugins requires Lua 5.1, that is completely correct.

@folke thanks for a lot of your plugins!
I have a question, since Lazy supports now luarocks and especially on macOS with Homebrew, [email protected] is deprecated and needs workaround to work with newer version,
isn't enough luarocks --lua-version=5.1 even with newer version of Lua as you’re already using ?

local ok = task:spawn(luarocks, {
args = {
"--tree",
root,
"--server",
Config.options.rocks.server,
"--dev",
"--lua-version",
"5.1",
"install", -- use install so that we can make use of pre-built rocks
"--force-fast",
"--deps-mode",
"one",
rockspec.package,
},
cwd = task.plugin.dir,
env = env,
})

from lazy.nvim.

kadimisetty avatar kadimisetty commented on August 16, 2024

5.1 is on nix as well, if that's more your thing:

nix profile install nixpkgs#lua51Packages.lua
nix profile install nixpkgs#lua51Packages.luarocks

from lazy.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.