init.lua 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. vim.cmd [[
  2. set packpath-=~/.config/nvim
  3. set packpath-=~/.config/nvim/after
  4. set packpath-=~/.local/share/nvim/site
  5. set packpath^=~/.local/share/lunarvim/site
  6. set packpath^=~/.config/lvim
  7. set runtimepath-=~/.config/nvim
  8. set runtimepath-=~/.config/nvim/after
  9. set runtimepath^=~/.config/lvim
  10. ]]
  11. -- vim.opt.rtp:append() instead of vim.cmd ?
  12. require "default-config"
  13. local status_ok, error = pcall(vim.cmd, "luafile ~/.config/lvim/lv-config.lua")
  14. if not status_ok then
  15. print "something is wrong with your lv-config"
  16. print(error)
  17. end
  18. require "keymappings"
  19. local plugins = require "plugins"
  20. local plugin_loader = require("plugin-loader").init()
  21. plugin_loader:load { plugins, O.user_plugins }
  22. vim.g.colors_name = O.colorscheme -- Colorscheme must get called after plugins are loaded or it will break new installs.
  23. require "settings"
  24. require "lv-utils"
  25. -- TODO: these guys need to be in language files
  26. -- require "lsp"
  27. -- if O.lang.emmet.active then
  28. -- require "lsp.emmet-ls"
  29. -- end
  30. -- if O.lang.tailwindcss.active then
  31. -- require "lsp.tailwind