init.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. require('default-config')
  2. vim.cmd('luafile ' .. CONFIG_PATH .. '/lv-config.lua')
  3. require('settings')
  4. require('plugins')
  5. require('lv-utils')
  6. require('lv-autocommands')
  7. require('keymappings')
  8. require('colorscheme') -- This plugin must be required somewhere after nvimtree. Placing it before will break navigation keymappings
  9. require('lv-galaxyline')
  10. require('lv-telescope')
  11. require('lv-treesitter')
  12. require('lv-autopairs')
  13. require('lv-which-key')
  14. -- LSP
  15. require('lsp')
  16. -- TODO should I put this in the filetype files?
  17. if O.lang.java.active then require('lsp.java-ls') end
  18. if O.lang.clang.active then require('lsp.clangd') end
  19. if O.lang.sh.active then require('lsp.bash-ls') end
  20. if O.lang.cmake.active then require('lsp.cmake-ls') end
  21. if O.lang.css.active then require('lsp.css-ls') end
  22. if O.lang.dart.active then require('lsp.dart-ls') end
  23. if O.lang.docker.active then require('lsp.docker-ls') end
  24. if O.lang.efm.active then require('lsp.efm-general-ls') end
  25. if O.lang.elm.active then require('lsp.elm-ls') end
  26. if O.lang.emmet.active then require('lsp.emmet-ls') end
  27. if O.lang.graphql.active then require('lsp.graphql-ls') end
  28. if O.lang.go.active then require('lsp.go-ls') end
  29. if O.lang.html.active then require('lsp.html-ls') end
  30. if O.lang.json.active then require('lsp.json-ls') end
  31. if O.lang.kotlin.active then require('lsp.kotlin-ls') end
  32. if O.lang.latex.active then require('lsp.latex-ls') end
  33. if O.lang.lua.active then require('lsp.lua-ls') end
  34. if O.lang.php.active then require('lsp.php-ls') end
  35. if O.lang.python.active then require('lsp.python-ls') end
  36. if O.lang.ruby.active then require('lsp.ruby-ls') end
  37. if O.lang.rust.active then require('lsp.rust-ls') end
  38. if O.lang.svelte.active then require('lsp.svelte-ls') end
  39. if O.lang.terraform.active then require('lsp.terraform-ls') end
  40. if O.lang.tailwindcss.active then require('lsp.tailwindcss-ls') end
  41. if O.lang.vim.active then require('lsp.vim-ls') end
  42. if O.lang.yaml.active then require('lsp.yaml-ls') end
  43. if O.lang.elixir.active then require('lsp.elixir-ls') end
  44. if O.lang.tsserver.active then
  45. require('lsp.js-ts-ls')
  46. require('lsp.angular-ls')
  47. require('lsp.vue-ls')
  48. end