plugins.lua 4.1 KB

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