nvim-neorocks / rocks-dev.nvim

A swiss-army knife for testing and developing rocks.nvim modules.
GNU General Public License v3.0
15 stars 3 forks source link

[Feature suggestion] add `dev_dir` option similar to rocks-config's `plugins_dir` #14

Closed NStefan002 closed 3 months ago

NStefan002 commented 6 months ago

It would be nice to have something like this in rocks.toml:

# ...

[dev]
dev_dir = "~/projects/"

# ...

"some_plugin" = { dev = true } # rocks-dev will try to find "some_plugin" in dev_dir directory
"some_other_plugin" = { dir = "~/path/to/plugin" } # rocks-dev will ignore dev_dir if dir is specified

I can try to implement this and open a PR if you like.

mrcjkb commented 6 months ago

I'm not sure how this would work. rocks.nvim uses the [plugins] table to figure out which plugins to load (as does rocks-config.nvim). With a dev_dir, the plugins in that directory won't be in the plugins table anymore.

mrcjkb commented 3 months ago

https://github.com/nvim-neorocks/rocks-dev.nvim/pull/28