plugins.lua 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. "kabouzeid/nvim-lspinstall",
  10. event = "VimEnter",
  11. config = function()
  12. local lspinstall = require "core.lspinstall"
  13. lspinstall.setup()
  14. end,
  15. },
  16. { "nvim-lua/popup.nvim" },
  17. { "nvim-lua/plenary.nvim" },
  18. -- Telescope
  19. {
  20. "nvim-telescope/telescope.nvim",
  21. config = function()
  22. require("core.telescope").setup()
  23. end,
  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("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. },
  41. {
  42. "rafamadriz/friendly-snippets",
  43. -- event = "InsertCharPre",
  44. -- disable = not lvim.builtin.compe.active,
  45. },
  46. -- Autopairs
  47. {
  48. "windwp/nvim-autopairs",
  49. -- event = "InsertEnter",
  50. after = "nvim-cmp",
  51. config = function()
  52. require("core.autopairs").setup()
  53. end,
  54. disable = not lvim.builtin.autopairs.active,
  55. },
  56. -- Treesitter
  57. {
  58. "nvim-treesitter/nvim-treesitter",
  59. branch = "0.5-compat",
  60. -- run = ":TSUpdate",
  61. config = function()
  62. require("core.treesitter").setup()
  63. end,
  64. },
  65. -- NvimTree
  66. {
  67. "kyazdani42/nvim-tree.lua",
  68. -- event = "BufWinOpen",
  69. -- cmd = "NvimTreeToggle",
  70. -- commit = "fd7f60e242205ea9efc9649101c81a07d5f458bb",
  71. config = function()
  72. require("core.nvimtree").setup()
  73. end,
  74. disable = not lvim.builtin.nvimtree.active,
  75. },
  76. {
  77. "lewis6991/gitsigns.nvim",
  78. config = function()
  79. require("core.gitsigns").setup()
  80. end,
  81. event = "BufRead",
  82. disable = not lvim.builtin.gitsigns.active,
  83. },
  84. -- Whichkey
  85. {
  86. "folke/which-key.nvim",
  87. config = function()
  88. require("core.which-key").setup()
  89. end,
  90. event = "BufWinEnter",
  91. disable = not lvim.builtin.which_key.active,
  92. },
  93. -- Comments
  94. {
  95. "terrortylor/nvim-comment",
  96. event = "BufRead",
  97. config = function()
  98. require("core.comment").setup()
  99. end,
  100. disable = not lvim.builtin.comment.active,
  101. },
  102. -- project.nvim
  103. {
  104. "ahmedkhalf/project.nvim",
  105. config = function()
  106. require("core.project").setup()
  107. end,
  108. disable = not lvim.builtin.project.active,
  109. },
  110. -- Icons
  111. { "kyazdani42/nvim-web-devicons" },
  112. -- Status Line and Bufferline
  113. {
  114. -- "hoob3rt/lualine.nvim",
  115. "shadmansaleh/lualine.nvim",
  116. -- "Lunarvim/lualine.nvim",
  117. config = function()
  118. require("core.lualine").setup()
  119. end,
  120. disable = not lvim.builtin.lualine.active,
  121. },
  122. {
  123. "romgrk/barbar.nvim",
  124. config = function()
  125. require("core.bufferline").setup()
  126. end,
  127. event = "BufWinEnter",
  128. disable = not lvim.builtin.bufferline.active,
  129. },
  130. -- Debugging
  131. {
  132. "mfussenegger/nvim-dap",
  133. -- event = "BufWinEnter",
  134. config = function()
  135. require("core.dap").setup()
  136. end,
  137. disable = not lvim.builtin.dap.active,
  138. },
  139. -- Debugger management
  140. {
  141. "Pocco81/DAPInstall.nvim",
  142. -- event = "BufWinEnter",
  143. -- event = "BufRead",
  144. disable = not lvim.builtin.dap.active,
  145. },
  146. -- Dashboard
  147. {
  148. "ChristianChiarulli/dashboard-nvim",
  149. event = "BufWinEnter",
  150. config = function()
  151. require("core.dashboard").setup()
  152. end,
  153. disable = not lvim.builtin.dashboard.active,
  154. },
  155. -- Terminal
  156. {
  157. "akinsho/toggleterm.nvim",
  158. event = "BufWinEnter",
  159. config = function()
  160. require("core.terminal").setup()
  161. end,
  162. disable = not lvim.builtin.terminal.active,
  163. },
  164. }