init.lua 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. local M = {}
  2. M.config = function()
  3. -- vim.g.dashboard_custom_header = {
  4. -- '███╗ ██╗██╗ ██╗ ██████╗ ██████╗ ██████╗ ███████╗',
  5. -- '████╗ ██║██║ ██║██╔════╝██╔═══██╗██╔══██╗██╔════╝',
  6. -- '██╔██╗ ██║██║ ██║██║ ██║ ██║██║ ██║█████╗',
  7. -- '██║╚██╗██║╚██╗ ██╔╝██║ ██║ ██║██║ ██║██╔══╝',
  8. -- '██║ ╚████║ ╚████╔╝ ╚██████╗╚██████╔╝██████╔╝███████╗',
  9. -- '╚═╝ ╚═══╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝'
  10. -- }
  11. -- vim.g.dashboard_custom_header = {
  12. --
  13. -- ' _..._ ',
  14. -- ' .\' `. ██  ██  ██ ███  ██  █████  ██████  ██  ██ ██ ███  ███ ',
  15. -- ' : : ██  ██  ██ ████  ██ ██   ██ ██   ██ ██  ██ ██ ████  ████ ',
  16. -- ' : : ██  ██  ██ ██ ██  ██ ███████ ██████  ██  ██ ██ ██ ████ ██ ',
  17. -- ' `. .\' ██  ██  ██ ██  ██ ██ ██   ██ ██   ██  ██  ██  ██ ██  ██  ██ ',
  18. -- ' `-...-\' ███████  ██████  ██   ████ ██  ██ ██  ██   ████   ██ ██      ██ ',
  19. --
  20. -- }
  21. vim.g.dashboard_disable_at_vimenter = 0
  22. vim.g.dashboard_custom_header = O.dashboard.custom_header
  23. vim.g.dashboard_default_executive = 'telescope'
  24. vim.g.dashboard_custom_section = {
  25. a = {
  26. description = {' Find File '},
  27. command = 'Telescope find_files'
  28. },
  29. b = {
  30. description = {' Recently Used Files'},
  31. command = 'Telescope oldfiles'
  32. },
  33. c = {
  34. description = {' Load Last Session '},
  35. command = 'SessionLoad'
  36. },
  37. d = {
  38. description = {' Find Word '},
  39. command = 'Telescope live_grep'
  40. },
  41. e = {
  42. description = {' Settings '},
  43. command = ':e ' .. CONFIG_PATH .. '/lv-config.lua'
  44. }
  45. -- e = {description = {' Marks '}, command = 'Telescope marks'}
  46. }
  47. -- file_browser = {description = {' File Browser'}, command = 'Telescope find_files'},
  48. -- vim.g.dashboard_custom_shortcut = {
  49. -- a = 'f',
  50. -- find_word = 'SPC f a',
  51. -- last_session = 'SPC s l',
  52. -- new_file = 'SPC c n',
  53. -- book_marks = 'SPC f b'
  54. -- }
  55. -- find_history = 'SPC f h',
  56. -- vim.g.dashboard_session_directory = CACHE_PATH..'/session'
  57. vim.g.dashboard_custom_footer = O.dashboard.footer
  58. end
  59. return M