nvim-docker
nvim-docker copied to clipboard
Can't use `nvim-docker` on lazy.nvim as it does not supports LuaRocks dependencies
Went through some issues and discussions to try to understand how to make it work with lazy.nvim, but it does not support luaRocks dependencies.
Here as some discussions if you want to go through them too.
Most clarifying discussion: https://github.com/folke/lazy.nvim/issues/253
Denial to implement luarocks dependencies: https://github.com/folke/lazy.nvim/issues/37
Other fellow plugin author ranting about it: https://github.com/jghauser/papis.nvim/issues/18
I just made a workaround here! And it is working flawlessly
here is the configuration I'm using for lazy.nvim
lazy.nvim
{
"dgrbrady/nvim-docker",
dependencies = {
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
"pvsfair/reactivex.nvim",
},
config = function()
local nvim_docker = require('nvim-docker')
vim.keymap.set('n', '<leader>lc', nvim_docker.containers.list_containers)
end
}
This repo just do a wrap around the reactive repo, so it can be used as a dependency on lazy.
@pvsfair you could also do:
{
"4O4/lua-reactivex",
build = function(plugin)
vim.uv.fs_symlink(plugin.dir, plugin.dir .. "/lua", { dir = true })
end,
},
This way you don't need to create a wrapper repo