plugins.lua 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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. -- NvimTree
  76. {
  77. "kyazdani42/nvim-tree.lua",
  78. -- event = "BufWinOpen",
  79. -- cmd = "NvimTreeToggle",
  80. -- commit = "fd7f60e242205ea9efc9649101c81a07d5f458bb",
  81. config = function()
  82. require("lvim.core.nvimtree").setup()
  83. end,
  84. disable = not lvim.builtin.nvimtree.active,
  85. },
  86. {
  87. "lewis6991/gitsigns.nvim",
  88. config = function()
  89. require("lvim.core.gitsigns").setup()
  90. end,
  91. event = "BufRead",
  92. disable = not lvim.builtin.gitsigns.active,
  93. },
  94. -- Whichkey
  95. {
  96. "folke/which-key.nvim",
  97. config = function()
  98. require("lvim.core.which-key").setup()
  99. end,
  100. event = "BufWinEnter",
  101. disable = not lvim.builtin.which_key.active,
  102. },
  103. -- Comments
  104. {
  105. "numToStr/Comment.nvim",
  106. event = "BufRead",
  107. config = function()
  108. require("lvim.core.comment").setup()
  109. end,
  110. disable = not lvim.builtin.comment.active,
  111. },
  112. -- project.nvim
  113. {
  114. "ahmedkhalf/project.nvim",
  115. config = function()
  116. require("lvim.core.project").setup()
  117. end,
  118. disable = not lvim.builtin.project.active,
  119. },
  120. -- Icons
  121. { "kyazdani42/nvim-web-devicons" },
  122. -- Status Line and Bufferline
  123. {
  124. -- "hoob3rt/lualine.nvim",
  125. "nvim-lualine/lualine.nvim",
  126. -- "Lunarvim/lualine.nvim",
  127. config = function()
  128. require("lvim.core.lualine").setup()
  129. end,
  130. disable = not lvim.builtin.lualine.active,
  131. },
  132. {
  133. "romgrk/barbar.nvim",
  134. config = function()
  135. require("lvim.core.bufferline").setup()
  136. end,
  137. event = "BufWinEnter",
  138. disable = not lvim.builtin.bufferline.active,
  139. },
  140. -- Debugging
  141. {
  142. "mfussenegger/nvim-dap",
  143. -- event = "BufWinEnter",
  144. config = function()
  145. require("lvim.core.dap").setup()
  146. end,
  147. disable = not lvim.builtin.dap.active,
  148. },
  149. -- Debugger management
  150. {
  151. "Pocco81/DAPInstall.nvim",
  152. -- event = "BufWinEnter",
  153. -- event = "BufRead",
  154. disable = not lvim.builtin.dap.active,
  155. },
  156. -- Dashboard
  157. {
  158. "ChristianChiarulli/dashboard-nvim",
  159. event = "BufWinEnter",
  160. config = function()
  161. require("lvim.core.dashboard").setup()
  162. end,
  163. disable = not lvim.builtin.dashboard.active,
  164. },
  165. -- Terminal
  166. {
  167. "akinsho/toggleterm.nvim",
  168. event = "BufWinEnter",
  169. config = function()
  170. require("lvim.core.terminal").setup()
  171. end,
  172. disable = not lvim.builtin.terminal.active,
  173. },
  174. }