plugins.lua 4.2 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. "williamboman/nvim-lsp-installer",
  10. },
  11. { "nvim-lua/popup.nvim" },
  12. { "nvim-lua/plenary.nvim" },
  13. -- Telescope
  14. {
  15. "nvim-telescope/telescope.nvim",
  16. config = function()
  17. require("lvim.core.telescope").setup()
  18. end,
  19. disable = not lvim.builtin.telescope.active,
  20. },
  21. {
  22. "nvim-telescope/telescope-fzf-native.nvim",
  23. run = "make",
  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("lvim.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("lvim.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. config = function()
  57. require("lvim.core.autopairs").setup()
  58. end,
  59. disable = not lvim.builtin.autopairs.active,
  60. },
  61. -- Treesitter
  62. {
  63. "nvim-treesitter/nvim-treesitter",
  64. branch = "0.5-compat",
  65. -- run = ":TSUpdate",
  66. config = function()
  67. require("lvim.core.treesitter").setup()
  68. end,
  69. },
  70. -- NvimTree
  71. {
  72. "kyazdani42/nvim-tree.lua",
  73. -- event = "BufWinOpen",
  74. -- cmd = "NvimTreeToggle",
  75. -- commit = "fd7f60e242205ea9efc9649101c81a07d5f458bb",
  76. config = function()
  77. require("lvim.core.nvimtree").setup()
  78. end,
  79. disable = not lvim.builtin.nvimtree.active,
  80. },
  81. {
  82. "lewis6991/gitsigns.nvim",
  83. config = function()
  84. require("lvim.core.gitsigns").setup()
  85. end,
  86. event = "BufRead",
  87. disable = not lvim.builtin.gitsigns.active,
  88. },
  89. -- Whichkey
  90. -- TODO: change back to folke/which-key.nvim after folke got back
  91. {
  92. "abzcoding/which-key.nvim",
  93. branch = "fix/neovim-6-position",
  94. config = function()
  95. require("lvim.core.which-key").setup()
  96. end,
  97. event = "BufWinEnter",
  98. disable = not lvim.builtin.which_key.active,
  99. },
  100. -- Comments
  101. {
  102. "numToStr/Comment.nvim",
  103. event = "BufRead",
  104. config = function()
  105. require("lvim.core.comment").setup()
  106. end,
  107. disable = not lvim.builtin.comment.active,
  108. },
  109. -- project.nvim
  110. {
  111. "ahmedkhalf/project.nvim",
  112. config = function()
  113. require("lvim.core.project").setup()
  114. end,
  115. disable = not lvim.builtin.project.active,
  116. },
  117. -- Icons
  118. { "kyazdani42/nvim-web-devicons" },
  119. -- Status Line and Bufferline
  120. {
  121. -- "hoob3rt/lualine.nvim",
  122. "shadmansaleh/lualine.nvim",
  123. -- "Lunarvim/lualine.nvim",
  124. config = function()
  125. require("lvim.core.lualine").setup()
  126. end,
  127. disable = not lvim.builtin.lualine.active,
  128. },
  129. {
  130. "romgrk/barbar.nvim",
  131. config = function()
  132. require("lvim.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("lvim.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("lvim.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("lvim.core.terminal").setup()
  168. end,
  169. disable = not lvim.builtin.terminal.active,
  170. },
  171. }