dashboard.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. return {
  2. 'nvimdev/dashboard-nvim',
  3. event = 'VimEnter',
  4. config = function()
  5. -- keymap
  6. vim.keymap.set("n", "<leader>hh", ":Dashboard<CR>", {})
  7. vim.keymap.set("n", "<leader>u", ":Lazy update<CR>", {})
  8. require('dashboard').setup {
  9. -- config
  10. theme = 'doom',
  11. config = {
  12. header = { [[]], [[]], [[]], [[]], [[]], [[]], [[]], [[]],
  13. [[ ▀████▀▄▄ ▄█ ]],
  14. [[ █▀ ▀▀▄▄▄▄▄ ▄▄▀▀█ ]],
  15. [[ ▄ █ ▀▀▀▀▄ ▄▀ ]],
  16. [[ ▄▀ ▀▄ ▀▄ ▀▄▀ ]],
  17. [[ ▄▀ █ █▀ ▄█▀▄ ▄█ ]],
  18. [[ ▀▄ ▀▄ █ ▀██▀ ██▄█ ]],
  19. [[ ▀▄ ▄▀ █ ▄██▄ ▄ ▄ ▀▀ █ ]],
  20. [[ █ ▄▀ █ ▀██▀ ▀▀ ▀▀ ▄▀ ]],
  21. [[ █ █ █ ▄▄ ▄▀ ]], [[]], [[]], [[]], [[]], [[]], [[]], [[]], [[]] }, -- your header
  22. center = { {
  23. icon = " ",
  24. icon_hl = 'Title',
  25. desc = 'Find File ',
  26. desc_hl = 'String',
  27. key = 'f',
  28. keymap = 'SPC f',
  29. key_hl = 'Number',
  30. }, {
  31. icon = ' ',
  32. desc = 'Find Word',
  33. key = 'k',
  34. keymap = 'SPC k',
  35. }, {
  36. icon = ' ',
  37. desc = 'Project',
  38. key = 'p',
  39. keymap = 'SPC p',
  40. }, {
  41. icon = '󰚰 ',
  42. desc = 'Plugins Update',
  43. key = 'u',
  44. name = "DsStore",
  45. keymap = 'SPC u',
  46. } },
  47. -- your footer
  48. footer = function()
  49. local stats = require("lazy").stats()
  50. local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
  51. return { '🧑🏻sdaduanbilei', '🎉 Have fun with neovim 🎉', "🎉 Neovim loaded " ..
  52. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms" }
  53. end
  54. }
  55. }
  56. end,
  57. dependencies = { { 'nvim-tree/nvim-web-devicons' } },
  58. }