init.lua 771 B

12345678910111213141516171819202122232425
  1. require "default-config"
  2. require "keymappings"
  3. local status_ok, _ = pcall(vim.cmd, "luafile " .. CONFIG_PATH .. "/lv-config.lua")
  4. if not status_ok then
  5. print "something is wrong with your lv-config"
  6. end
  7. require "plugins"
  8. vim.g.colors_name = O.colorscheme -- Colorscheme must get called after plugins are loaded or it will break new installs.
  9. require "settings"
  10. require "lv-utils"
  11. require "lv-treesitter"
  12. -- TODO: these guys need to be in language files
  13. -- require "lsp"
  14. -- if O.lang.emmet.active then
  15. -- require "lsp.emmet-ls"
  16. -- end
  17. -- if O.lang.tailwindcss.active then
  18. -- require "lsp.tailwind
  19. vim.api.nvim_exec(
  20. [[
  21. au BufEnter,BufWinEnter,WinEnter,CmdwinEnter * if bufname('%') == "NvimTree" | set laststatus=0 | else | set laststatus=2 | endif
  22. ]],
  23. false
  24. )