diff --git a/installer.lua b/installer.lua index 00eda232..e2cd6063 100644 --- a/installer.lua +++ b/installer.lua @@ -396,7 +396,7 @@ local function install() " }", ' package.cpath = package.cpath .. ";" .. table.concat(luarocks_cpath, ";")', " ", - ' vim.opt.runtimepath:append(vim.fs.joinpath(rocks_config.rocks_path, "lib", "luarocks", "rocks-5.1", "rocks.nvim", "*"))', + ' vim.opt.runtimepath:append(vim.fs.joinpath(rocks_config.rocks_path, "lib", "luarocks", "rocks-5.1", "*", "*"))', "<", "Thank you for installing rocks.nvim!", "", diff --git a/lua/rocks/config/internal.lua b/lua/rocks/config/internal.lua index 7c259d26..48a44908 100644 --- a/lua/rocks/config/internal.lua +++ b/lua/rocks/config/internal.lua @@ -19,8 +19,8 @@ ---@field rocks_path string Local path in your filesystem to install rocks ---@field config_path string Rocks declaration file path ---@field luarocks_binary string Luarocks binary path ----@field lazy boolean Whether to query luarocks.org lazily ----@field dynamic_rtp boolean Whether to automatically add freshly installed plugins to the 'runtimepath' +---@field lazy boolean Whether to query luarocks.org lazily. +---@field dynamic_rtp boolean Whether to automatically add freshly installed plugins to the 'runtimepath'. ---@field debug_info RocksConfigDebugInfo ---@class (exact) RocksConfigDebugInfo diff --git a/nix/init.lua b/nix/init.lua index c234ad66..1da42f08 100644 --- a/nix/init.lua +++ b/nix/init.lua @@ -20,4 +20,4 @@ local luarocks_cpath = { } package.cpath = package.cpath .. ";" .. table.concat(luarocks_cpath, ";") -vim.opt.runtimepath:append(vim.fs.joinpath(rocks_config.rocks_path, "lib", "luarocks", "rocks-5.1", "rocks.nvim", "*")) +vim.opt.runtimepath:append(vim.fs.joinpath(rocks_config.rocks_path, "lib", "luarocks", "rocks-5.1", "*", "*")) diff --git a/plugin/rocks.lua b/plugin/rocks.lua index 14a03509..859677ef 100644 --- a/plugin/rocks.lua +++ b/plugin/rocks.lua @@ -17,6 +17,3 @@ if not config.lazy then }) end) end - --- TODO: Add support for `opt` -vim.opt.runtimepath:append(vim.fs.joinpath(config.rocks_path, "lib", "luarocks", "rocks-5.1", "*", "*"))