Skip to content

crnvl96/lazydocker.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lazydocker.nvim

Simple and straightforward plugin that allows the user to open lazydocker without quitting their current Neovim section

image

Contents

Inspiration

Alternatives

Installation

Requirements

-- 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",
		},
	}
)

Configuration

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 ",
        },
      },
    }
}

Usage

  • 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 })