plugins.lua 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. return {
  2. -- Packer can manage itself as an optional plugin
  3. { "wbthomason/packer.nvim" },
  4. { "neovim/nvim-lspconfig" },
  5. { "tamago324/nlsp-settings.nvim" },
  6. { "jose-elias-alvarez/null-ls.nvim" },
  7. { "antoinemadec/FixCursorHold.nvim" }, -- Needed while issue https://github.com/neovim/neovim/issues/12587 is still open
  8. {
  9. "kabouzeid/nvim-lspinstall",
  10. event = "VimEnter",
  11. config = function()
  12. local lspinstall = require "core.lspinstall"
  13. lspinstall.setup()
  14. end,
  15. },
  16. { "nvim-lua/popup.nvim" },
  17. { "nvim-lua/plenary.nvim" },
  18. -- Telescope
  19. {
  20. "nvim-telescope/telescope.nvim",
  21. config = function()
  22. require("core.telescope").setup()
  23. end,
  24. disable = not lvim.builtin.telescope.active,
  25. },
  26. -- Completion & Snippets
  27. {
  28. "hrsh7th/nvim-compe",
  29. event = "InsertEnter",
  30. config = function()
  31. require("core.compe").setup()
  32. end,
  33. disable = not lvim.builtin.compe.active,
  34. -- wants = "vim-vsnip",
  35. -- requires = {
  36. -- {
  37. -- "hrsh7th/vim-vsnip",
  38. -- wants = "friendly-snippets",
  39. -- event = "InsertCharPre",
  40. -- },
  41. -- {
  42. -- "rafamadriz/friendly-snippets",
  43. -- event = "InsertCharPre",
  44. -- },
  45. -- },
  46. },
  47. {
  48. "hrsh7th/vim-vsnip",
  49. -- wants = "friendly-snippets",
  50. event = "InsertEnter",
  51. disable = not lvim.builtin.compe.active,
  52. },
  53. {
  54. "rafamadriz/friendly-snippets",
  55. event = "InsertCharPre",
  56. disable = not lvim.builtin.compe.active,
  57. },
  58. -- Autopairs
  59. {
  60. "windwp/nvim-autopairs",
  61. -- event = "InsertEnter",
  62. after = "nvim-compe",
  63. config = function()
  64. require("core.autopairs").setup()
  65. end,
  66. disable = not lvim.builtin.autopairs.active or not lvim.builtin.compe.active,
  67. },
  68. -- Treesitter
  69. {
  70. "nvim-treesitter/nvim-treesitter",
  71. branch = "0.5-compat",
  72. -- run = ":TSUpdate",
  73. config = function()
  74. require("core.treesitter").setup()
  75. end,
  76. },
  77. -- NvimTree
  78. {
  79. "kyazdani42/nvim-tree.lua",
  80. -- event = "BufWinOpen",
  81. -- cmd = "NvimTreeToggle",
  82. -- commit = "fd7f60e242205ea9efc9649101c81a07d5f458bb",
  83. config = function()
  84. require("core.nvimtree").setup()
  85. end,
  86. disable = not lvim.builtin.nvimtree.active,
  87. },
  88. {
  89. "lewis6991/gitsigns.nvim",
  90. config = function()
  91. require("core.gitsigns").setup()
  92. end,
  93. event = "BufRead",
  94. disable = not lvim.builtin.gitsigns.active,
  95. },
  96. -- Whichkey
  97. {
  98. "folke/which-key.nvim",
  99. config = function()
  100. require("core.which-key").setup()
  101. end,
  102. event = "BufWinEnter",
  103. disable = not lvim.builtin.which_key.active,
  104. },
  105. -- Comments
  106. {
  107. "terrortylor/nvim-comment",
  108. event = "BufRead",
  109. config = function()
  110. require("core.comment").setup()
  111. end,
  112. disable = not lvim.builtin.comment.active,
  113. },
  114. -- project.nvim
  115. {
  116. "ahmedkhalf/project.nvim",
  117. config = function()
  118. require("core.project").setup()
  119. end,
  120. disable = not lvim.builtin.project.active,
  121. },
  122. -- Icons
  123. { "kyazdani42/nvim-web-devicons" },
  124. -- Status Line and Bufferline
  125. {
  126. -- "hoob3rt/lualine.nvim",
  127. "shadmansaleh/lualine.nvim",
  128. -- "Lunarvim/lualine.nvim",
  129. config = function()
  130. require("core.lualine").setup()
  131. end,
  132. disable = not lvim.builtin.lualine.active,
  133. },
  134. {
  135. "romgrk/barbar.nvim",
  136. config = function()
  137. require("core.bufferline").setup()
  138. end,
  139. event = "BufWinEnter",
  140. disable = not lvim.builtin.bufferline.active,
  141. },
  142. -- Debugging
  143. {
  144. "mfussenegger/nvim-dap",
  145. -- event = "BufWinEnter",
  146. config = function()
  147. require("core.dap").setup()
  148. end,
  149. disable = not lvim.builtin.dap.active,
  150. },
  151. -- Debugger management
  152. {
  153. "Pocco81/DAPInstall.nvim",
  154. -- event = "BufWinEnter",
  155. -- event = "BufRead",
  156. disable = not lvim.builtin.dap.active,
  157. },
  158. -- Dashboard
  159. {
  160. "ChristianChiarulli/dashboard-nvim",
  161. event = "BufWinEnter",
  162. config = function()
  163. require("core.dashboard").setup()
  164. end,
  165. disable = not lvim.builtin.dashboard.active,
  166. },
  167. -- Terminal
  168. {
  169. "akinsho/nvim-toggleterm.lua",
  170. event = "BufWinEnter",
  171. config = function()
  172. require("core.terminal").setup()
  173. end,
  174. disable = not lvim.builtin.terminal.active,
  175. },
  176. }