nvim-neorocks / rocks.nvim

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

[Feature]: `:Rocks try` #302

Open vhyrro opened 2 weeks ago

vhyrro commented 2 weeks ago

A try command would install a plugin but not add it to the rocks.toml, therefore pruning it on the next sync.

This would be useful for temporarily trying out rocks without committing to it.

NTBBloodbath commented 2 weeks ago

therefore pruning it on the next sync

question: what if we save them in a temporary global variable (vim.g._rocks_tmp or something like that) and run an autocmd in VimLeave to automatically remove them instead? 👀

mrcjkb commented 2 weeks ago

therefore pruning it on the next sync

question: what if we save them in a temporary global variable (vim.g._rocks_tmp or something like that) and run an autocmd in VimLeave to automatically remove them instead? 👀

Or :Rocks try could set up an autocommand for each plugin. It might be a good idea to detach the process that uninstalls the rock.