We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 283ca3c commit bc99921Copy full SHA for bc99921
lua/astrocommunity/docker/lazydocker/init.lua
@@ -1,3 +1,4 @@
1
+---@type LazySpec
2
return {
3
{
4
"mgierada/lazydocker.nvim",
@@ -6,18 +7,18 @@ return {
6
7
"akinsho/toggleterm.nvim",
8
9
"AstroNvim/astrocore",
- opts = {
10
- mappings = {
11
- n = {
12
- ["<Leader>t" .. "d"] = {
13
- function() require("lazydocker").open() end,
14
- desc = "ToggleTerm LazyDocker",
15
- },
16
17
18
+ opts = function(_, opts)
+ local maps = opts.mappings
+
+ -- INFO: Default prefix of toggleterm-related actions
+ local prefix = "<Leader>t"
+ maps.n[prefix .. "d"] = {
+ function() require("lazydocker").open() end,
+ desc = "ToggleTerm LazyDocker",
19
+ }
20
+ end,
21
},
22
- opts = {},
23
24
}
0 commit comments