plugins.lua 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. return {
  2. -- Packer can manage itself as an optional plugin
  3. { "wbthomason/packer.nvim" },
  4. -- TODO: refactor all of this (for now it works, but yes I know it could be wrapped in a simpler function)
  5. { "neovim/nvim-lspconfig" },
  6. {
  7. "kabouzeid/nvim-lspinstall",
  8. event = "VimEnter",
  9. config = function()
  10. require("lspinstall").setup()
  11. end,
  12. },
  13. { "nvim-lua/popup.nvim" },
  14. { "nvim-lua/plenary.nvim" },
  15. { "tjdevries/astronauta.nvim" },
  16. -- Telescope
  17. {
  18. "nvim-telescope/telescope.nvim",
  19. config = [[require('core.telescope').setup()]],
  20. },
  21. -- Autocomplete
  22. {
  23. "hrsh7th/nvim-compe",
  24. -- event = "InsertEnter",
  25. config = function()
  26. require("core.compe").setup()
  27. end,
  28. },
  29. -- Autopairs
  30. {
  31. "windwp/nvim-autopairs",
  32. -- event = "InsertEnter",
  33. config = function()
  34. require "core.autopairs"
  35. end,
  36. },
  37. -- Snippets
  38. { "hrsh7th/vim-vsnip", event = "InsertEnter" },
  39. { "rafamadriz/friendly-snippets", event = "InsertEnter" },
  40. -- Treesitter
  41. {
  42. "nvim-treesitter/nvim-treesitter",
  43. config = function()
  44. require("core.treesitter").setup()
  45. end,
  46. },
  47. -- Formatter.nvim
  48. {
  49. "mhartington/formatter.nvim",
  50. config = function()
  51. require "core.formatter"
  52. end,
  53. },
  54. -- Linter
  55. {
  56. "mfussenegger/nvim-lint",
  57. config = function()
  58. require("core.linter").setup()
  59. end,
  60. },
  61. -- NvimTree
  62. {
  63. "kyazdani42/nvim-tree.lua",
  64. -- event = "BufWinOpen",
  65. -- cmd = "NvimTreeToggle",
  66. commit = "fd7f60e242205ea9efc9649101c81a07d5f458bb",
  67. config = function()
  68. require("core.nvimtree").setup()
  69. end,
  70. },
  71. {
  72. "lewis6991/gitsigns.nvim",
  73. config = function()
  74. require("core.gitsigns").setup()
  75. end,
  76. event = "BufRead",
  77. },
  78. -- whichkey
  79. {
  80. "folke/which-key.nvim",
  81. config = function()
  82. require("core.which-key").setup()
  83. end,
  84. event = "BufWinEnter",
  85. },
  86. -- Comments
  87. {
  88. "terrortylor/nvim-comment",
  89. event = "BufRead",
  90. config = function()
  91. local status_ok, nvim_comment = pcall(require, "nvim_comment")
  92. if not status_ok then
  93. return
  94. end
  95. nvim_comment.setup()
  96. end,
  97. },
  98. -- vim-rooter
  99. {
  100. "airblade/vim-rooter",
  101. config = function()
  102. vim.g.rooter_silent_chdir = 1
  103. end,
  104. },
  105. -- Icons
  106. { "kyazdani42/nvim-web-devicons" },
  107. -- Status Line and Bufferline
  108. {
  109. "glepnir/galaxyline.nvim",
  110. config = function()
  111. require "core.galaxyline"
  112. end,
  113. event = "BufWinEnter",
  114. disable = not O.plugin.galaxyline.active,
  115. },
  116. {
  117. "romgrk/barbar.nvim",
  118. config = function()
  119. require "core.bufferline"
  120. end,
  121. event = "BufWinEnter",
  122. },
  123. -- Debugging
  124. {
  125. "mfussenegger/nvim-dap",
  126. -- event = "BufWinEnter",
  127. config = function()
  128. require("core.dap").setup()
  129. end,
  130. disable = not O.plugin.dap.active,
  131. },
  132. -- Debugger management
  133. {
  134. "Pocco81/DAPInstall.nvim",
  135. -- event = "BufWinEnter",
  136. -- event = "BufRead",
  137. disable = not O.plugin.dap.active,
  138. },
  139. -- Builtins, these do not load by default
  140. -- Dashboard
  141. {
  142. "ChristianChiarulli/dashboard-nvim",
  143. event = "BufWinEnter",
  144. config = function()
  145. require("core.dashboard").setup()
  146. end,
  147. disable = not O.plugin.dashboard.active,
  148. },
  149. -- TODO: remove in favor of akinsho/nvim-toggleterm.lua
  150. -- Floating terminal
  151. -- {
  152. -- "numToStr/FTerm.nvim",
  153. -- event = "BufWinEnter",
  154. -- config = function()
  155. -- require("core.floatterm").setup()
  156. -- end,
  157. -- disable = not O.plugin.floatterm.active,
  158. -- },
  159. {
  160. "akinsho/nvim-toggleterm.lua",
  161. event = "BufWinEnter",
  162. config = function()
  163. require("core.terminal").setup()
  164. end,
  165. disable = not O.plugin.terminal.active,
  166. },
  167. -- Zen Mode
  168. {
  169. "folke/zen-mode.nvim",
  170. cmd = "ZenMode",
  171. event = "BufRead",
  172. config = function()
  173. require("core.zen").setup()
  174. end,
  175. disable = not O.plugin.zen.active,
  176. },
  177. ---------------------------------------------------------------------------------
  178. -- LANGUAGE SPECIFIC GOES HERE
  179. {
  180. "lervag/vimtex",
  181. ft = "tex",
  182. },
  183. -- Rust tools
  184. -- TODO: use lazy loading maybe?
  185. {
  186. "simrat39/rust-tools.nvim",
  187. disable = not O.lang.rust.rust_tools.active,
  188. },
  189. -- Elixir
  190. { "elixir-editors/vim-elixir", ft = { "elixir", "eelixir", "euphoria3" } },
  191. -- Javascript / Typescript
  192. {
  193. "jose-elias-alvarez/nvim-lsp-ts-utils",
  194. ft = {
  195. "javascript",
  196. "javascriptreact",
  197. "javascript.jsx",
  198. "typescript",
  199. "typescriptreact",
  200. "typescript.tsx",
  201. },
  202. },
  203. -- Java
  204. {
  205. "mfussenegger/nvim-jdtls",
  206. -- ft = { "java" },
  207. disable = not O.lang.java.java_tools.active,
  208. },
  209. -- Scala
  210. {
  211. "scalameta/nvim-metals",
  212. disable = not O.lang.scala.metals.active,
  213. },
  214. }