nvim-neorocks / rocks.nvim

Neovim plugin management inspired by Cargo, powered by luarocks
GNU General Public License v3.0
380 stars 6 forks source link

feat: ensure plugin runtime paths are available before rocks initialises #285

Closed mrcjkb closed 2 weeks ago

mrcjkb commented 3 weeks ago

With this PR, rocks.nvim maintains symlinks to the plugin runtime paths in site/pack/luarocks/opt.

Because the symlinks are all in opt, they are available on the runtimepath before rocks.nvim initialises, but none of the plugin, after/plugin or ftdetect directories are sourced (rocks.nvim takes care of this for non-opt plugins).

This brings with it some nice benefits:

Not yet implemented (TODO):

github-actions[bot] commented 3 weeks ago

Review Checklist

Does this PR follow the Contribution Guidelines? Following is a partial checklist:

Proper conventional commit scoping:

If applicable:

mrcjkb commented 3 weeks ago

Let's get this merged and I'll look into deprecating :Rocks packadd in another PR.

vhyrro commented 2 weeks ago

Down to deprecate packadd as well. New changes look good to me!