chore: run stylua

This commit is contained in:
Stevan Freeborn
2026-07-19 11:15:18 -05:00
parent 1a46469842
commit 6e041e7d65
15 changed files with 448 additions and 452 deletions
+56 -56
View File
@@ -1,8 +1,8 @@
return {
"nvimdev/dashboard-nvim",
event = "VimEnter",
config = function()
local logo = [[
"nvimdev/dashboard-nvim",
event = "VimEnter",
config = function()
local logo = [[
@@ -28,59 +28,59 @@ return {
]]
local opts = {
theme = "doom",
hide = {
statusline = false,
},
config = {
header = vim.split(logo, "\n"),
center = {
{
action = 'lua require("telescope.builtin").find_files()',
desc = " Find File",
icon = "",
key = "f",
},
{ action = "ene | startinsert", desc = " New File", icon = "", key = "n" },
{
action = 'lua require("telescope.builtin").oldfiles()',
desc = " Recent Files",
icon = "",
key = "r",
},
{
action = 'lua require("telescope.builtin").live_grep()',
desc = " Find Text",
icon = "",
key = "g",
},
{ action = "Lazy", desc = " Lazy", icon = "󰒲 ", key = "l" },
{
action = function()
vim.api.nvim_input("<cmd>qa<cr>")
end,
desc = " Quit",
icon = "",
key = "q",
},
},
footer = function()
local stats = require("lazy").stats()
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
return { "⚡ Neovim loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms" }
end,
},
}
local opts = {
theme = "doom",
hide = {
statusline = false,
},
config = {
header = vim.split(logo, "\n"),
center = {
{
action = 'lua require("telescope.builtin").find_files()',
desc = " Find File",
icon = "",
key = "f",
},
{ action = "ene | startinsert", desc = " New File", icon = "", key = "n" },
{
action = 'lua require("telescope.builtin").oldfiles()',
desc = " Recent Files",
icon = "",
key = "r",
},
{
action = 'lua require("telescope.builtin").live_grep()',
desc = " Find Text",
icon = "",
key = "g",
},
{ action = "Lazy", desc = " Lazy", icon = "󰒲 ", key = "l" },
{
action = function()
vim.api.nvim_input("<cmd>qa<cr>")
end,
desc = " Quit",
icon = "",
key = "q",
},
},
footer = function()
local stats = require("lazy").stats()
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
return { "⚡ Neovim loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms" }
end,
},
}
require("dashboard").setup(opts)
require("dashboard").setup(opts)
for _, button in ipairs(opts.config.center) do
button.desc = button.desc .. string.rep(" ", 43 - #button.desc)
button.key_format = " %s"
end
for _, button in ipairs(opts.config.center) do
button.desc = button.desc .. string.rep(" ", 43 - #button.desc)
button.key_format = " %s"
end
vim.api.nvim_set_hl(0, "DashboardHeader", { fg = "#b39cd0", bold = true })
vim.api.nvim_set_hl(0, "DashboardFooter", { fg = "#b39cd0", bold = true })
end,
vim.api.nvim_set_hl(0, "DashboardHeader", { fg = "#b39cd0", bold = true })
vim.api.nvim_set_hl(0, "DashboardFooter", { fg = "#b39cd0", bold = true })
end,
}