Skip to content

Rocks with Lazy.nvim with Rockspec disabled removed the Rocks command. #496

Answered by mrcjkb
andrewcrook asked this question in Q&A
Discussion options

You must be logged in to vote

Hey 👋

lazy.nvim disables Neovim's built-in plugin loading mechanism, which prevents rocks.nvim from being loaded.
If you're not using lazy.nvim to install rocks.nvim (which I guess isn't possible with its luarocks support disabled), it won't load it.

You could try the following lazy.nvim spec:

{
  "nvim-neorocks/rocks.nvim",
  dir = "<path-to-rocks-nvim-luaorkcs-installation>", -- e.g. "/home/<user>/.local/share/nvim/rocks/lib/luarocks/rocks-5.1/rocks.nvim/2.36.1-1""
  lazy = false,
}

The problem is that luarocks installs the plugin's initialisation scripts into a <version> subdirectory
(rocks.nvim/2.36.1-1 in this example), so you have to determine the dir programmatically.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@andrewcrook
Comment options

@mrcjkb
Comment options

@andrewcrook
Comment options

Answer selected by andrewcrook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #495 on August 02, 2024 19:32.