diff --git a/lua/astrocommunity/docker/lazydocker/init.lua b/lua/astrocommunity/docker/lazydocker/init.lua index 6b3fa0056..a6e1da212 100644 --- a/lua/astrocommunity/docker/lazydocker/init.lua +++ b/lua/astrocommunity/docker/lazydocker/init.lua @@ -1,3 +1,4 @@ +---@type LazySpec return { { "mgierada/lazydocker.nvim", @@ -6,18 +7,18 @@ return { "akinsho/toggleterm.nvim", { "AstroNvim/astrocore", - opts = { - mappings = { - n = { - ["t" .. "d"] = { - function() require("lazydocker").open() end, - desc = "ToggleTerm LazyDocker", - }, - }, - }, - }, + opts = function(_, opts) + local maps = opts.mappings + + -- INFO: Default prefix of toggleterm-related actions + local prefix = "t" + + maps.n[prefix .. "d"] = { + function() require("lazydocker").open() end, + desc = "ToggleTerm LazyDocker", + } + end, }, }, - opts = {}, }, }