Advertisement
Wurfkreuz

Untitled

May 5th, 2023
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. for _, source in ipairs {
  2. "astronvim.bootstrap",
  3. "astronvim.options",
  4. "astronvim.lazy",
  5. "astronvim.autocmds",
  6. "astronvim.mappings",
  7. } do
  8. local status_ok, fault = pcall(require, source)
  9. if not status_ok then vim.api.nvim_err_writeln("Failed to load " .. source .. "\n\n" .. fault) end
  10. end
  11.  
  12. if astronvim.default_colorscheme then
  13. if not pcall(vim.cmd.colorscheme, astronvim.default_colorscheme) then
  14. require("astronvim.utils").notify(
  15. "Error setting up colorscheme: " .. astronvim.default_colorscheme,
  16. vim.log.levels.ERROR
  17. )
  18. end
  19. end
  20.  
  21. require("astronvim.utils").conditional_func(astronvim.user_opts("polish", nil, false), true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement