plugins.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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. -- TODO: change back to folke/which-key.nvim after folke got back
  93. {
  94. "abzcoding/which-key.nvim",
  95. branch = "fix/neovim-6-position",
  96. config = function()
  97. require("lvim.core.which-key").setup()
  98. end,
  99. event = "BufWinEnter",
  100. disable = not lvim.builtin.which_key.active,
  101. },
  102. -- Comments
  103. {
  104. "numToStr/Comment.nvim",
  105. event = "BufRead",
  106. config = function()
  107. require("lvim.core.comment").setup()
  108. end,
  109. disable = not lvim.builtin.comment.active,
  110. },
  111. -- project.nvim
  112. {
  113. "ahmedkhalf/project.nvim",
  114. config = function()
  115. require("lvim.core.project").setup()
  116. end,
  117. disable = not lvim.builtin.project.active,
  118. },
  119. -- Icons
  120. { "kyazdani42/nvim-web-devicons" },
  121. -- Status Line and Bufferline
  122. {
  123. -- "hoob3rt/lualine.nvim",
  124. "nvim-lualine/lualine.nvim",
  125. -- "Lunarvim/lualine.nvim",
  126. config = function()
  127. require("lvim.core.lualine").setup()
  128. end,
  129. disable = not lvim.builtin.lualine.active,
  130. },
  131. {
  132. "romgrk/barbar.nvim",
  133. config = function()
  134. require("lvim.core.bufferline").setup()
  135. end,
  136. event = "BufWinEnter",
  137. disable = not lvim.builtin.bufferline.active,
  138. },
  139. -- Debugging
  140. {
  141. "mfussenegger/nvim-dap",
  142. -- event = "BufWinEnter",
  143. config = function()
  144. require("lvim.core.dap").setup()
  145. end,
  146. disable = not lvim.builtin.dap.active,
  147. },
  148. -- Debugger management
  149. {
  150. "Pocco81/DAPInstall.nvim",
  151. -- event = "BufWinEnter",
  152. -- event = "BufRead",
  153. disable = not lvim.builtin.dap.active,
  154. },
  155. -- Dashboard
  156. {
  157. "ChristianChiarulli/dashboard-nvim",
  158. event = "BufWinEnter",
  159. config = function()
  160. require("lvim.core.dashboard").setup()
  161. end,
  162. disable = not lvim.builtin.dashboard.active,
  163. },
  164. -- Terminal
  165. {
  166. "akinsho/toggleterm.nvim",
  167. event = "BufWinEnter",
  168. config = function()
  169. require("lvim.core.terminal").setup()
  170. end,
  171. disable = not lvim.builtin.terminal.active,
  172. },
  173. }