lazydocker.nvim
is a lazydocker
plugin for neovim that allows you to manage your docker environment without leaving your workspace. lazydocker
itself is a simple terminal UI for both docker
and docker-compose
, written in Go.
- ✨ Toggle
lazydocker
in neovim without leaving your workspace. Just useLazydocker
command.
And a new floating terminal with lazydocker
will pop up.
For a default keymaps bindings please refer to that wiki.
Lazydocker
Any default key map could be easily overwritten by modifying the keys
property. See the Installation section
<leader>ld
-- open lazydocker in floating windowq
-- close the floating window with lazydocker
It should work with any fairly modern neovim version. I tested that for the following:
neovim
>= 0.9 and nightly 0.11-dev releaseslazydocker
>= 0.21.1
Make sure you have lazydocker
up and running. The in-depth installing walkthrough is perfectly described in here.
For a quick start:
- Mac users can quickly install using
homebrew
brew install jesseduffield/lazydocker/lazydocker
brew install lazydocker
- Windows users can use
scoop
orChocolatey
scoop install lazydocker
choco install lazydocker
- Linux user can try with
aur
yay -S lazydocker
Install the lazydocker.nvim
neovim plugin with your favourite package manager:
-- lazydocker.nvim
{
"mgierada/lazydocker.nvim",
dependencies = { "akinsho/toggleterm.nvim" },
config = function()
require("lazydocker").setup({})
end,
event = "BufRead",
keys = {
{
"<leader>ld",
function()
require("lazydocker").open()
end,
desc = "Open Lazydocker floating window",
},
},
},
If you want to make sure lazydocker.nvim
starts whenever Neovim starts, you can set an event to event = "VeryLazy"
.