wip
This commit is contained in:
1 parent
a13ea6d3a9
commit
6224efd4a8
30 files changed
+2144
-3784
No files matched your search
@@ -0,0 +1,73 @@
|
||||
local dashboard = require("dashboard")
|
||||
local icons = require("lib.icons")
|
||||
|
||||
dashboard.setup({
|
||||
theme = "hyper",
|
||||
disable_move = false,
|
||||
shortcut_type = "letter",
|
||||
change_to_vcs_root = true,
|
||||
hide = {
|
||||
statusline = true,
|
||||
tabline = false,
|
||||
winbar = false,
|
||||
},
|
||||
config = {
|
||||
week_header = {
|
||||
enable = true,
|
||||
append = { "", icons.ui.Circle .. " Learn, Make, Explore! " .. icons.ui.Circle },
|
||||
},
|
||||
packages = { enable = true },
|
||||
project = { enable = true, limit = 8 },
|
||||
mru = { limit = 8 },
|
||||
shortcut = {
|
||||
{
|
||||
desc = icons.ui.Package .. "Mason",
|
||||
group = "@property",
|
||||
action = "Mason",
|
||||
key = "m",
|
||||
},
|
||||
{
|
||||
desc = icons.ui.Sleep .. "Lazy",
|
||||
group = "@property",
|
||||
action = "Lazy",
|
||||
key = "l",
|
||||
},
|
||||
{
|
||||
desc = icons.documents.OpenFolder .. "Files",
|
||||
group = "Label",
|
||||
action = "Telescope find_files",
|
||||
key = "f",
|
||||
},
|
||||
{
|
||||
desc = icons.ui.Search .. "Search",
|
||||
group = "Label",
|
||||
action = "Telescope live_grep",
|
||||
key = "g",
|
||||
},
|
||||
{
|
||||
desc = icons.ui.Note .. "Todo",
|
||||
group = "Label",
|
||||
action = "Tdo",
|
||||
key = "d",
|
||||
},
|
||||
{
|
||||
desc = icons.ui.Power,
|
||||
group = "Action",
|
||||
action = "quit",
|
||||
key = "q",
|
||||
},
|
||||
},
|
||||
footer = { "", icons.ui.Heart .. " Happiness is a state of mind. " .. icons.ui.Heart },
|
||||
},
|
||||
})
|
||||
|
||||
-- Show dashboard when lazy closes
|
||||
if vim.o.filetype == "lazy" then
|
||||
vim.cmd.close()
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "DashboardLoaded",
|
||||
callback = function()
|
||||
require("lazy").show()
|
||||
end,
|
||||
})
|
||||
end
|
||||
Reference in new issue
Block a user