Rocks with Lazy.nvim with Rockspec disabled removed the Rocks command. #496
-
If I load lazy and then rocks.nvim
The ‘:Rocks' command is removed for rocks.nvim. I then have to call the following to get it back
I wonder if there is a cleaner way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey 👋 lazy.nvim disables Neovim's built-in plugin loading mechanism, which prevents rocks.nvim from being loaded. 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 |
Beta Was this translation helpful? Give feedback.
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:
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 thedir
programmatically.