plugins.lua 3.9 KB

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