plugins.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. {
  12. "rcarriga/nvim-notify",
  13. disable = not lvim.builtin.notify.active,
  14. },
  15. { "Tastyep/structlog.nvim" },
  16. { "nvim-lua/popup.nvim" },
  17. { "nvim-lua/plenary.nvim" },
  18. -- Telescope
  19. {
  20. "nvim-telescope/telescope.nvim",
  21. config = function()
  22. require("lvim.core.telescope").setup()
  23. end,
  24. disable = not lvim.builtin.telescope.active,
  25. },
  26. {
  27. "nvim-telescope/telescope-fzf-native.nvim",
  28. run = "make",
  29. disable = not lvim.builtin.telescope.active,
  30. },
  31. -- Install nvim-cmp, and buffer source as a dependency
  32. {
  33. "hrsh7th/nvim-cmp",
  34. config = function()
  35. require("lvim.core.cmp").setup()
  36. end,
  37. requires = {
  38. "L3MON4D3/LuaSnip",
  39. "saadparwaiz1/cmp_luasnip",
  40. "hrsh7th/cmp-buffer",
  41. "hrsh7th/cmp-nvim-lsp",
  42. "hrsh7th/cmp-path",
  43. "hrsh7th/cmp-nvim-lua",
  44. },
  45. run = function()
  46. -- cmp's config requires cmp to be installed to run the first time
  47. if not lvim.builtin.cmp then
  48. require("lvim.core.cmp").config()
  49. end
  50. end,
  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. config = function()
  62. require("lvim.core.autopairs").setup()
  63. end,
  64. disable = not lvim.builtin.autopairs.active,
  65. },
  66. -- Treesitter
  67. {
  68. "nvim-treesitter/nvim-treesitter",
  69. branch = "0.5-compat",
  70. -- run = ":TSUpdate",
  71. config = function()
  72. require("lvim.core.treesitter").setup()
  73. end,
  74. },
  75. {
  76. "JoosepAlviste/nvim-ts-context-commentstring",
  77. event = "BufReadPost",
  78. },
  79. -- NvimTree
  80. {
  81. "kyazdani42/nvim-tree.lua",
  82. -- event = "BufWinOpen",
  83. -- cmd = "NvimTreeToggle",
  84. commit = "f92b7e7627c5a36f4af6814c408211539882c4f3",
  85. config = function()
  86. require("lvim.core.nvimtree").setup()
  87. end,
  88. disable = not lvim.builtin.nvimtree.active,
  89. },
  90. {
  91. "lewis6991/gitsigns.nvim",
  92. config = function()
  93. require("lvim.core.gitsigns").setup()
  94. end,
  95. event = "BufRead",
  96. disable = not lvim.builtin.gitsigns.active,
  97. },
  98. -- Whichkey
  99. {
  100. "folke/which-key.nvim",
  101. config = function()
  102. require("lvim.core.which-key").setup()
  103. end,
  104. event = "BufWinEnter",
  105. disable = not lvim.builtin.which_key.active,
  106. },
  107. -- Comments
  108. {
  109. "numToStr/Comment.nvim",
  110. event = "BufRead",
  111. config = function()
  112. require("lvim.core.comment").setup()
  113. end,
  114. disable = not lvim.builtin.comment.active,
  115. },
  116. -- project.nvim
  117. {
  118. "ahmedkhalf/project.nvim",
  119. config = function()
  120. require("lvim.core.project").setup()
  121. end,
  122. disable = not lvim.builtin.project.active,
  123. },
  124. -- Icons
  125. { "kyazdani42/nvim-web-devicons" },
  126. -- Status Line and Bufferline
  127. {
  128. -- "hoob3rt/lualine.nvim",
  129. "nvim-lualine/lualine.nvim",
  130. -- "Lunarvim/lualine.nvim",
  131. config = function()
  132. require("lvim.core.lualine").setup()
  133. end,
  134. disable = not lvim.builtin.lualine.active,
  135. },
  136. {
  137. "romgrk/barbar.nvim",
  138. config = function()
  139. require("lvim.core.bufferline").setup()
  140. end,
  141. event = "BufWinEnter",
  142. disable = not lvim.builtin.bufferline.active,
  143. },
  144. -- Debugging
  145. {
  146. "mfussenegger/nvim-dap",
  147. -- event = "BufWinEnter",
  148. config = function()
  149. require("lvim.core.dap").setup()
  150. end,
  151. disable = not lvim.builtin.dap.active,
  152. },
  153. -- Debugger management
  154. {
  155. "Pocco81/DAPInstall.nvim",
  156. -- event = "BufWinEnter",
  157. -- event = "BufRead",
  158. disable = not lvim.builtin.dap.active,
  159. },
  160. -- Dashboard
  161. {
  162. "ChristianChiarulli/dashboard-nvim",
  163. event = "BufWinEnter",
  164. config = function()
  165. require("lvim.core.dashboard").setup()
  166. end,
  167. disable = not lvim.builtin.dashboard.active,
  168. },
  169. -- Terminal
  170. {
  171. "akinsho/toggleterm.nvim",
  172. event = "BufWinEnter",
  173. config = function()
  174. require("lvim.core.terminal").setup()
  175. end,
  176. disable = not lvim.builtin.terminal.active,
  177. },
  178. }