init.lua 975 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. }
  15. for _, skeleton in ipairs(skeletons) do
  16. util.initialise(skeleton)
  17. end
  18. async:close()
  19. end))
  20. local highlights = require("spacegray.highlights")
  21. local Treesitter = require("spacegray.Treesitter")
  22. local markdown = require("spacegray.markdown")
  23. local Whichkey = require("spacegray.Whichkey")
  24. local Git = require("spacegray.Git")
  25. local LSP = require("spacegray.LSP")
  26. local skeletons = {
  27. highlights, Treesitter, markdown, Whichkey, Git, LSP
  28. }
  29. for _, skeleton in ipairs(skeletons) do
  30. util.initialise(skeleton)
  31. end
  32. async:send()