⬆️ deps(nvim): changed alpha to dashboard-nvim due to performance issues
This commit is contained in:
parent
95185927bf
commit
67d466e276
6 changed files with 79 additions and 9 deletions
|
@ -23,6 +23,7 @@ return {
|
|||
enabled = true,
|
||||
enable_ui = true, -- enable nvim-dap-ui
|
||||
},
|
||||
dashboard = true,
|
||||
flash = true,
|
||||
headlines = true,
|
||||
gitsigns = true,
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
return {
|
||||
"goolord/alpha-nvim",
|
||||
keys = {
|
||||
{ "<leader>fa", "<cmd>Alpha<cr>", desc = "Dashboard (Alpha)" },
|
||||
},
|
||||
opts = function(_, dashboard)
|
||||
"nvimdev/dashboard-nvim",
|
||||
opts = function(_, opts)
|
||||
local logo = [[
|
||||
|
||||
████ ██████ █████ ██
|
||||
|
@ -15,7 +12,8 @@ return {
|
|||
██████ █████████████████████ ████ █████ █████ ████ ██████
|
||||
]]
|
||||
|
||||
dashboard.section.header.val = vim.split(logo, "\n")
|
||||
return dashboard
|
||||
logo = string.rep("\n", 8) .. logo .. "\n\n"
|
||||
opts.config.header = vim.split(logo, "\n")
|
||||
return opts
|
||||
end,
|
||||
}
|
|
@ -3,8 +3,8 @@ return {
|
|||
"ThePrimeagen/harpoon",
|
||||
--stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>'", function() require("harpoon.mark").add_file() end, desc = "Add File" },
|
||||
{ "<leader>;", "<cmd>Telescope harpoon marks<CR>", desc = "Harpoon" },
|
||||
{ "<leader>>", function() require("harpoon.mark").add_file() end, desc = "Add File" },
|
||||
{ "<leader>.", "<cmd>Telescope harpoon marks<CR>", desc = "Harpoon" },
|
||||
{ "<leader>1", function() require("harpoon.ui").nav_file(1) end, desc = "File 1" },
|
||||
{ "<leader>2", function() require("harpoon.ui").nav_file(2) end, desc = "File 2" },
|
||||
{ "<leader>3", function() require("harpoon.ui").nav_file(3) end, desc = "File 3" },
|
||||
|
@ -26,6 +26,7 @@ return {
|
|||
},
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
optional = true,
|
||||
opts = function(_, dashboard)
|
||||
local button = dashboard.button("m", " " .. " Marks", "<cmd>Telescope harpoon marks<CR>")
|
||||
button.opts.hl = "AlphaButtons"
|
||||
|
@ -33,4 +34,21 @@ return {
|
|||
table.insert(dashboard.section.buttons.val, 5, button)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvimdev/dashboard-nvim",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
local harpoon = {
|
||||
action = "Telescope harpoon marks",
|
||||
desc = " Marks",
|
||||
icon = " ",
|
||||
key = "m",
|
||||
}
|
||||
|
||||
harpoon.desc = harpoon.desc .. string.rep(" ", 43 - #harpoon.desc)
|
||||
harpoon.key_format = " %s"
|
||||
|
||||
table.insert(opts.config.center, 5, harpoon)
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ return {
|
|||
},
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
optional = true,
|
||||
opts = function(_, dashboard)
|
||||
local button = dashboard.button("p", " " .. " Projects/Repos", "<cmd>Telescope repo list <CR>")
|
||||
button.opts.hl = "AlphaButtons"
|
||||
|
@ -36,6 +37,23 @@ return {
|
|||
table.insert(dashboard.section.buttons.val, 4, button)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvimdev/dashboard-nvim",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
local projects = {
|
||||
action = "Telescope repo list",
|
||||
desc = " Projects/Repos",
|
||||
icon = " ",
|
||||
key = "p",
|
||||
}
|
||||
|
||||
projects.desc = projects.desc .. string.rep(" ", 43 - #projects.desc)
|
||||
projects.key_format = " %s"
|
||||
|
||||
table.insert(opts.config.center, 4, projects)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"airblade/vim-rooter",
|
||||
event = "VeryLazy",
|
||||
|
|
|
@ -25,6 +25,7 @@ return {
|
|||
},
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
optional = true,
|
||||
opts = function(_, dashboard)
|
||||
local button = dashboard.button("z", " " .. " Zoxide", "<cmd>Telescope zoxide list <CR>")
|
||||
button.opts.hl = "AlphaButtons"
|
||||
|
@ -32,4 +33,21 @@ return {
|
|||
table.insert(dashboard.section.buttons.val, 5, button)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvimdev/dashboard-nvim",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
local zoxide = {
|
||||
action = "Telescope zoxide list",
|
||||
desc = " Zoxide",
|
||||
icon = " ",
|
||||
key = "z",
|
||||
}
|
||||
|
||||
zoxide.desc = zoxide.desc .. string.rep(" ", 43 - #zoxide.desc)
|
||||
zoxide.key_format = " %s"
|
||||
|
||||
table.insert(opts.config.center, 4, zoxide)
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -78,4 +78,21 @@ return {
|
|||
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,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue