Simple and straightforward plugin that allows the user to open lazydocker without quitting their current Neovim section
-- Packer
use({
"crnvl96/lazydocker.nvim",
config = function()
require("lazydocker").setup()
end,
requires = {
"MunifTanjim/nui.nvim",
}
})
-- Lazy
{
"crnvl96/lazydocker.nvim",
event = "VeryLazy",
opts = {}, -- automatically calls `require("lazydocker").setup()`
dependencies = {
"MunifTanjim/nui.nvim",
}
}
lazydocker.nvim
comes with the following defaults
{
popup_window = {
enter = true,
focusable = true,
zindex = 40,
position = "50%",
relative = "win",
size = {
width = "90%",
height = "90%",
},
buf_options = {
modifiable = true,
readonly = false,
},
win_options = {
winhighlight = "Normal:Normal,FloatBorder:FloatBorder",
winblend = 0,
},
border = {
highlight = "FloatBorder",
style = "rounded",
text = {
top = " Lazydocker ",
},
},
}
}
- Use the command
LazyDocker
to toggle the floating panel - For a quick reference regarding manipulating lazydocker features, check this link
Or set a keymap
vim.keymap.set("n", "<leader>k", "<cmd>LazyDocker<CR>", { desc = "Toggle LazyDocker", noremap = true, silent = true })
Repository | Mirror |
---|---|
github.com |
https://github.com/crnvl96/lazydocker.nvim |
codeberg.org |
https://codeberg.org/crnvl96/lazydocker.nvim |