colorscheme.lua 455 B

123456789101112131415161718
  1. vim.o.background = "dark"
  2. vim.g.tokyonight_style = "storm" -- day / night
  3. -- 半透明
  4. -- vim.g.tokyonight_transparent = true
  5. -- vim.g.tokyonight_transparent_sidebar = true
  6. local colorscheme = "tokyonight"
  7. -- tokyonight
  8. -- OceanicNext
  9. -- gruvbox
  10. -- zephyr
  11. -- nord
  12. -- onedark
  13. -- nightfox
  14. local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
  15. if not status_ok then
  16. vim.notify("colorscheme: " .. colorscheme .. " 没有找到!")
  17. return
  18. end