/telescope-docker.nvim

A Docker plugin for Neovim, built on Telescope

Primary LanguageLua

Telescope Docker

A Docker-browsing plugin for Neovim, built on Telescope.

This is the source code from my tutorial video:

YouTube Thumbnail

Installation Using Lazy

{
    'krisajenkins/telescope-docker.nvim',
    event = 'VeryLazy',
    dependencies = {
        'nvim-telescope/telescope.nvim',
    },
    config = function()
        require('telescope').load_extension('telescope_docker')
        require('telescope_docker').setup {}
    end,

    -- Example keybindings. Adjust these to suit your preferences or remove
    --   them entirely:
    keys = {
        {
            '<Leader>dv',
            ':Telescope telescope_docker docker_volumes<CR>',
            desc = '[D]ocker [V]olumes',
        },
        {
            '<Leader>di',
            ':Telescope telescope_docker docker_images<CR>',
            desc = '[D]ocker [I]mages',
        },
        {
            '<Leader>dp',
            ':Telescope telescope_docker docker_ps<CR>',
            desc = '[D]ocker [P]rocesses',
        },
    },
}

<Leader>dv will now show a Docker Volume browser.
<Leader>di will now show a Docker Image browser.
<Leader>dp will now show a Docker Process browser.

Testing

make