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. { "rcarriga/nvim-notify" },
  12. { "Tastyep/structlog.nvim" },
  13. { "nvim-lua/popup.nvim" },
  14. { "nvim-lua/plenary.nvim" },
  15. -- Telescope
  16. {
  17. "nvim-telescope/telescope.nvim",
  18. config = function()
  19. require("lvim.core.telescope").setup()
  20. end,
  21. disable = not lvim.builtin.telescope.active,
  22. },
  23. {
  24. "nvim-telescope/telescope-fzf-native.nvim",
  25. run = "make",
  26. disable = not lvim.builtin.telescope.active,
  27. },
  28. -- Install nvim-cmp, and buffer source as a dependency
  29. {
  30. "hrsh7th/nvim-cmp",
  31. config = function()
  32. require("lvim.core.cmp").setup()
  33. end,
  34. requires = {
  35. "L3MON4D3/LuaSnip",
  36. "saadparwaiz1/cmp_luasnip",
  37. "hrsh7th/cmp-buffer",
  38. "hrsh7th/cmp-nvim-lsp",
  39. "hrsh7th/cmp-path",
  40. "hrsh7th/cmp-nvim-lua",
  41. },
  42. run = function()
  43. -- cmp's config requires cmp to be installed to run the first time
  44. if not lvim.builtin.cmp then
  45. require("lvim.core.cmp").config()
  46. end
  47. end,
  48. },
  49. {
  50. "rafamadriz/friendly-snippets",
  51. -- event = "InsertCharPre",
  52. -- disable = not lvim.builtin.compe.active,
  53. },
  54. -- Autopairs
  55. {
  56. "windwp/nvim-autopairs",
  57. -- event = "InsertEnter",
  58. config = function()
  59. require("lvim.core.autopairs").setup()
  60. end,
  61. disable = not lvim.builtin.autopairs.active,
  62. },
  63. -- Treesitter
  64. {
  65. "nvim-treesitter/nvim-treesitter",
  66. branch = "0.5-compat",
  67. -- run = ":TSUpdate",
  68. config = function()
  69. require("lvim.core.treesitter").setup()
  70. end,
  71. },
  72. -- NvimTree
  73. {
  74. "kyazdani42/nvim-tree.lua",
  75. -- event = "BufWinOpen",
  76. -- cmd = "NvimTreeToggle",
  77. -- commit = "fd7f60e242205ea9efc9649101c81a07d5f458bb",
  78. config = function()
  79. require("lvim.core.nvimtree").setup()
  80. end,
  81. disable = not lvim.builtin.nvimtree.active,
  82. },
  83. {
  84. "lewis6991/gitsigns.nvim",
  85. config = function()
  86. require("lvim.core.gitsigns").setup()
  87. end,
  88. event = "BufRead",
  89. disable = not lvim.builtin.gitsigns.active,
  90. },
  91. -- Whichkey
  92. {
  93. "folke/which-key.nvim",
  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. "nvim-lualine/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. }