Using luarocks #173
-
I want to write a few things inside my neovim's config that depend on luarocks libraries. How should I install them w/ packer? Currently, I've just inserted use {'wbthomason/packer.nvim', opt = true, rocks = {'lua-cjson', 'httpclient'}} , but I wonder if there is a better way, i.e. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Right now, that's unfortunately the best way. You can use I think, later today, I may add a function |
Beta Was this translation helpful? Give feedback.
-
Fair point/good idea. Done in 3a8543e. |
Beta Was this translation helpful? Give feedback.
Right now, that's unfortunately the best way. You can use
PackerRocks install {your rocks}
, but if you're usingpacker
as your regular plugin manager, then those rocks will be deleted on the next clean/sync (thePackerRocks
command is designed for people who want to manage Luarocks dependencies without usingpacker
as a plugin manager).I think, later today, I may add a function
use_rocks
that just takes a list of rocks to add. This would make your use case much more straightforward.