plugins.lua 4.1 KB

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