init.lua 934 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. vim.api.nvim_command "hi clear"
  2. if vim.fn.exists "syntax_on" then
  3. vim.api.nvim_command "syntax reset"
  4. end
  5. vim.o.background = "dark"
  6. vim.o.termguicolors = true
  7. vim.g.colors_name = "spacegray"
  8. local util = require "spacegray.util"
  9. Config = require "spacegray.config"
  10. C = require "spacegray.palette"
  11. local async
  12. async = vim.loop.new_async(vim.schedule_wrap(function()
  13. local skeletons = {}
  14. for _, skeleton in ipairs(skeletons) do
  15. util.initialise(skeleton)
  16. end
  17. async:close()
  18. end))
  19. local highlights = require "spacegray.highlights"
  20. local Treesitter = require "spacegray.Treesitter"
  21. local markdown = require "spacegray.markdown"
  22. local Whichkey = require "spacegray.Whichkey"
  23. local Git = require "spacegray.Git"
  24. local LSP = require "spacegray.LSP"
  25. local skeletons = {
  26. highlights,
  27. Treesitter,
  28. markdown,
  29. Whichkey,
  30. Git,
  31. LSP,
  32. }
  33. for _, skeleton in ipairs(skeletons) do
  34. util.initialise(skeleton)
  35. end
  36. async:send()