Skip to content

Plugin for calling lazydocker from within neovim.

License

Notifications You must be signed in to change notification settings

jackthinkers/lazydocker.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LazyDocker.nvim

Work in progress

All credits to the original LazyGit.nvim creator kdheepak

Plugin for calling LazyDocker from within neovim.

Install

Install using lazy.nvim:

{
    "BrunoKrugel/lazydocker.nvim",
    cmd = "LazyDocker",
    -- optional for floating window border decoration
    dependencies = {
        "nvim-lua/plenary.nvim",
    },
},

Usage

The following are configuration options and their defaults.

vim.g.lazydocker_floating_window_winblend = 0 -- transparency of floating window
vim.g.lazydocker_floating_window_scaling_factor = 0.9 -- scaling factor for floating window
vim.g.lazydocker_floating_window_border_chars = {'','', '', '', '','', '', ''} -- customize lazydocker popup window border characters
vim.g.lazydocker_floating_window_use_plenary = 0 -- use plenary.nvim to manage floating window if available
vim.g.lazydocker_use_neovim_remote = 1 -- fallback to 0 if neovim-remote is not installed

vim.g.lazydocker_use_custom_config_file_path = 0 -- config file path is evaluated if this value is 1
vim.g.lazydocker_config_file_path = '' -- custom config file path

Call :LazyDocker to start a floating window with lazydocker in the current working directory.

Or set up a mapping to call :LazyDocker:

Call :LazyDockerCurrentFile to start a floating window with lazydocker in the project root of the current file.

Open the configuration file for lazydocker directly from vim.

:LazyDockerConfig<CR>

If the file does not exist it'll load the defaults for you.

Open project commits with lazydocker directly from vim in floating window.

:LazyDockerFilter<CR>

Open buffer commits with lazydocker directly from vim in floating window.

:LazyDockerFilterCurrentFile<CR>

Highlighting groups

Highlight Group Default Group Description
LazyDockerFloat Normal Float terminal foreground and background
LazyDockerBorder Normal Float terminal border

About

Plugin for calling lazydocker from within neovim.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 85.7%
  • Vim Script 14.3%