dotfyle icon indicating copy to clipboard operation
dotfyle copied to clipboard

Support rocks.nvim?

Open mrcjkb opened this issue 1 year ago • 2 comments

There's a new plugin manager, rocks.nvim, which uses a rocks.toml as the source of truth for plugins.

Here's an example. It should be pretty easy to parse. One difference to most plugin managers is that it uses name-based installation (without a repo owner, because plugins are installed from luarocks.org, unless using the rocks-git module). I don't know how dotfyle would handle this?

mrcjkb avatar Jan 18 '24 17:01 mrcjkb

This looks completely reasonable, I'll put it in the Todo.

Currently Dotfyle relies heavily on the heuristic username/plugin-name when matching. Currently not doing custom matching for lazy-lock either. Lazy lock also does not include the username, so would need to be solved for both.

codicocodes avatar Jan 18 '24 23:01 codicocodes

Awesome :smile:

Here's some info that could potentially help map plugins on luarocks from plugin-name to username/plugin-name.

  • luarocks plugins usually have a "neovim" label, so you can find them at https://luarocks.org/labels/neovim (though I don't think there's a query parameter for machine readable output :disappointed: )
  • Rocks have a "homepage" attribute, which for Neovim plugins will typically point to the repo.

We're currently working on rocks - a rewrite of luarocks (not fully functional yet, and the name isn't final), which will hopefully provide an embeddable rust library when it's done. Maybe that could be more useful?

mrcjkb avatar Jan 29 '24 20:01 mrcjkb