init.lua 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. f = {
  46. description = {' Neovim Config Files'},
  47. command = 'lua require(\'telescope.builtin\').find_files({search_dirs = {"~/.config/nvim"}})'
  48. }
  49. -- e = {description = {' Marks '}, command = 'Telescope marks'}
  50. }
  51. -- file_browser = {description = {' File Browser'}, command = 'Telescope find_files'},
  52. -- vim.g.dashboard_custom_shortcut = {
  53. -- a = 'f',
  54. -- find_word = 'SPC f a',
  55. -- last_session = 'SPC s l',
  56. -- new_file = 'SPC c n',
  57. -- book_marks = 'SPC f b'
  58. -- }
  59. -- find_history = 'SPC f h',
  60. -- vim.g.dashboard_session_directory = CACHE_PATH..'/session'
  61. vim.g.dashboard_custom_footer = O.dashboard.footer
  62. end
  63. return M