my configs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.2 KiB

  1. local map = require("utils").map
  2. local g = vim.g
  3. local fn = vim.fn
  4. g.startify_files_number = 10
  5. g.startify_change_to_dir = 0
  6. local ascii = {
  7. [[]],
  8. [[ /___/\]],
  9. [[ _\ \/_/\]],
  10. [[ __\ \/_/\ .--.--.|__|.--.--.--.]],
  11. [[ \ __ __ \ \ | | || || |]],
  12. [[ __\ \_\ \_\ \ \ __ \___/ |__||__|__|__|]],
  13. [[ /_/\\ __ __ \ \_/_/\]],
  14. [[ \_\/_\__\/\__\/\__\/_\_\/]],
  15. [[ \_\/_/\ /_\_\/]],
  16. [[ \_\/ \_\/]]
  17. }
  18. -- g.startify_custom_header = 'startify#center(g:ascii)'
  19. g.startify_custom_header = ascii
  20. g.startify_relative_path = 1
  21. g.startify_use_env = 1
  22. g.startify_lists = {
  23. {type = "dir", header = {"Files: " .. fn.getcwd()}},
  24. {type = "sessions", header = {"Sessions"}},
  25. {type = "bookmarks", header = {"Bookmarks"}},
  26. {type = "commands", header = {"Commands"}}
  27. }
  28. g.startify_commands = {
  29. {up = {"Update Plugins", ":PlugUpdate"}},
  30. {ug = {"Upgrade Plugin Manager", ":PlugUpgrade"}},
  31. {ts = {"Update Treesitter", "TSUpdate"}},
  32. {ch = {"Check Health", "checkhealth"}}
  33. }
  34. g.startify_bookmarks = {
  35. {c = "~/.config/nvim/init.vim"},
  36. {g = "~/.gitconfig"},
  37. {z = "~/.zshrc"}
  38. }
  39. map{"n", "<leader>st", ":Startify<cr>"}