🗑️ remove(nvim): lazygit entry on the dashboard

This commit is contained in:
Sergio Laín 2024-08-08 17:00:41 +02:00
parent cd639ab7a5
commit 7bfbd94866
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150

View file

@ -59,33 +59,4 @@ return {
})
end,
},
{
"goolord/alpha-nvim",
optional = true,
opts = function(_, dashboard)
-- stylua: ignore
local button = dashboard.button("G", "󰊢 " .. " Git", "<cmd>FloatermNew --disposable --name=lazygitroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<root> lazygit<CR>")
button.opts.hl = "AlphaButtons"
button.opts.hl_shortcut = "AlphaShortcut"
table.insert(dashboard.section.buttons.val, 7, button)
return dashboard
end,
},
{
"nvimdev/dashboard-nvim",
optional = true,
opts = function(_, opts)
local git = {
action = "FloatermNew --disposable --name=lazygitroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<root> lazygit",
desc = " Git",
icon = "",
key = "G",
}
git.desc = git.desc .. string.rep(" ", 43 - #git.desc)
git.key_format = " %s"
table.insert(opts.config.center, 7, git)
end,
},
}