How to use local plugin as source? #1966
-
Contributing guidelines
Module(s)mini.deps QuestionHello, I recently switched from lazy.nvim to mini.deps, and I'm loving it. Thank you for your contribution to the ecosystem. I'm wondering how I could use a local plugin that I have on a completely different directory. See sometimes I want to contribute to a plugin or make my own, and with lazy I could change the source in the plugin spec and use Neovim like that. So for example, if I wanted to contribute to mini.nvim, I would clone mini.nvim, then change my plugin spec from |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi! Thanks for kind words! The workflow you describe was discussed in #1326 and is not really 100% possible. My suggestion would be:
I do understand that support of such use case in 'mini.nvim' is probably lacking (although I've never had issues of putting my local plugins directly inside packages), so there is a plan to improve this in |
Beta Was this translation helpful? Give feedback.
Hi! Thanks for kind words!
The workflow you describe was discussed in #1326 and is not really 100% possible. My suggestion would be:
add()
but under a different name. Soadd({ source = 'diego-velez/mini.nvim', name = 'my-mini', checkout = 'HEAD' })
(while disabling "regular" adding of 'mini.nvim'). Then perform changes directly inside '~/.local/share/nvim/site/pack/deps/opt/my-mini'.vim.cmd.packadd('my-plugin')
). If you really need it to be located in '~/nv…