plugins.lua 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. -- Install nvim-cmp, and buffer source as a dependency
  27. {
  28. "hrsh7th/nvim-cmp",
  29. config = function()
  30. require("core.cmp").setup()
  31. end,
  32. requires = {
  33. "L3MON4D3/LuaSnip",
  34. "saadparwaiz1/cmp_luasnip",
  35. "hrsh7th/cmp-buffer",
  36. "hrsh7th/cmp-nvim-lsp",
  37. "hrsh7th/cmp-path",
  38. "hrsh7th/cmp-nvim-lua",
  39. },
  40. run = function()
  41. -- cmp's config requires cmp to be installed to run the first time
  42. if not lvim.builtin.cmp then
  43. require("core.cmp").config()
  44. end
  45. end,
  46. },
  47. {
  48. "rafamadriz/friendly-snippets",
  49. -- event = "InsertCharPre",
  50. -- disable = not lvim.builtin.compe.active,
  51. },
  52. -- Autopairs
  53. {
  54. "windwp/nvim-autopairs",
  55. -- event = "InsertEnter",
  56. after = "nvim-cmp",
  57. config = function()
  58. require("core.autopairs").setup()
  59. end,
  60. disable = not lvim.builtin.autopairs.active,
  61. },
  62. -- Treesitter
  63. {
  64. "nvim-treesitter/nvim-treesitter",
  65. branch = "0.5-compat",
  66. -- run = ":TSUpdate",
  67. config = function()
  68. require("core.treesitter").setup()
  69. end,
  70. },
  71. -- NvimTree
  72. {
  73. "kyazdani42/nvim-tree.lua",
  74. -- event = "BufWinOpen",
  75. -- cmd = "NvimTreeToggle",
  76. -- commit = "fd7f60e242205ea9efc9649101c81a07d5f458bb",
  77. config = function()
  78. require("core.nvimtree").setup()
  79. end,
  80. disable = not lvim.builtin.nvimtree.active,
  81. },
  82. {
  83. "lewis6991/gitsigns.nvim",
  84. config = function()
  85. require("core.gitsigns").setup()
  86. end,
  87. event = "BufRead",
  88. disable = not lvim.builtin.gitsigns.active,
  89. },
  90. -- Whichkey
  91. {
  92. "folke/which-key.nvim",
  93. config = function()
  94. require("core.which-key").setup()
  95. end,
  96. event = "BufWinEnter",
  97. disable = not lvim.builtin.which_key.active,
  98. },
  99. -- Comments
  100. {
  101. "terrortylor/nvim-comment",
  102. event = "BufRead",
  103. config = function()
  104. require("core.comment").setup()
  105. end,
  106. disable = not lvim.builtin.comment.active,
  107. },
  108. -- project.nvim
  109. {
  110. "ahmedkhalf/project.nvim",
  111. config = function()
  112. require("core.project").setup()
  113. end,
  114. disable = not lvim.builtin.project.active,
  115. },
  116. -- Icons
  117. { "kyazdani42/nvim-web-devicons" },
  118. -- Status Line and Bufferline
  119. {
  120. -- "hoob3rt/lualine.nvim",
  121. "shadmansaleh/lualine.nvim",
  122. -- "Lunarvim/lualine.nvim",
  123. config = function()
  124. require("core.lualine").setup()
  125. end,
  126. disable = not lvim.builtin.lualine.active,
  127. },
  128. {
  129. "romgrk/barbar.nvim",
  130. commit = "7a19aac3d401c997a6fb7067a7756a4a77184c2e",
  131. config = function()
  132. require("core.bufferline").setup()
  133. end,
  134. event = "BufWinEnter",
  135. disable = not lvim.builtin.bufferline.active,
  136. },
  137. -- Debugging
  138. {
  139. "mfussenegger/nvim-dap",
  140. -- event = "BufWinEnter",
  141. config = function()
  142. require("core.dap").setup()
  143. end,
  144. disable = not lvim.builtin.dap.active,
  145. },
  146. -- Debugger management
  147. {
  148. "Pocco81/DAPInstall.nvim",
  149. -- event = "BufWinEnter",
  150. -- event = "BufRead",
  151. disable = not lvim.builtin.dap.active,
  152. },
  153. -- Dashboard
  154. {
  155. "ChristianChiarulli/dashboard-nvim",
  156. event = "BufWinEnter",
  157. config = function()
  158. require("core.dashboard").setup()
  159. end,
  160. disable = not lvim.builtin.dashboard.active,
  161. },
  162. -- Terminal
  163. {
  164. "akinsho/toggleterm.nvim",
  165. event = "BufWinEnter",
  166. config = function()
  167. require("core.terminal").setup()
  168. end,
  169. disable = not lvim.builtin.terminal.active,
  170. },
  171. }