init.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. vim.cmd("colorscheme " .. O.colorscheme)
  24. require "settings"
  25. require "lv-utils"
  26. -- TODO: these guys need to be in language files
  27. -- require "lsp"
  28. -- if O.lang.emmet.active then
  29. -- require "lsp.emmet-ls"
  30. -- end
  31. -- if O.lang.tailwindcss.active then
  32. -- require "lsp.tailwind