plugins.lua 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. local commit = {
  2. barbar = "6e638309efcad2f308eb9c5eaccf6f62b794bbab",
  3. cmp_buffer = "a01cfeca70594f505b2f086501e90fb6c2f2aaaa",
  4. cmp_luasnip = "7bd2612533db6863381193df83f9934b373b21e1",
  5. cmp_nvim_lsp = "134117299ff9e34adde30a735cd8ca9cf8f3db81",
  6. lua_dev = "4331626b02f636433b504b9ab6a8c11fb9de4a24",
  7. cmp_path = "81d88dfcafe26cc0cc856fc66f4677b20e6a9ffc",
  8. comment = "9e80d5146013275277238c89bbcaf4164f4e5140",
  9. dapinstall = "dd09e9dd3a6e29f02ac171515b8a089fb82bb425",
  10. fixcursorhold = "0e4e22d21975da60b0fd2d302285b3b603f9f71e",
  11. friendly_snippets = "a4105d7d463ee2a36dc2c28d243f1d2c5b41c142",
  12. gitsigns = "a451f97117bd1ede582a6b9db61c387c48d880b6",
  13. lualine = "9e26823ea6c7361aba3253c8a5c56a6f35b4a0ee",
  14. luasnip = "f654f947b80f5aad3f5849c0867e4cd5bbd9e40b",
  15. nlsp_settings = "5d74bcc8ae3795063cc8e35f634a8b3184568207",
  16. null_ls = "b7de45a0e62bf93f19db2b43ecded48c5763248d",
  17. nvim_autopairs = "a9b6b98de3bacacc0c986d9b0673cae6a87c4a41",
  18. nvim_cmp = "ae708ef3a44dfb0cb42d1aa901b4c57c2de53aa3",
  19. nvim_dap = "a6fa644f9de62c594a8a9cf6f2aaf324b5a6108b",
  20. nvim_lsp_installer = "e65e4966e1b3db486ae548a5674f20a8416a42d0",
  21. nvim_lspconfig = "0d2fb782cac8a19df0c0d7715ad4cdab4c582e15",
  22. nvim_notify = "243811198d3a937be03535bbe899446f235dda75",
  23. nvim_tree = "0a2f6b0b6ba558a88c77a6b262af647760e6eca8",
  24. nvim_treesitter = "ad69e2528ac382b7cbf28f1ac7ee450981734ab0",
  25. nvim_ts_context_commentstring = "097df33c9ef5bbd3828105e4bee99965b758dc3f",
  26. nvim_web_devicons = "ac71ca88b1136e1ecb2aefef4948130f31aa40d1",
  27. packer = "851c62c5ecd3b5adc91665feda8f977e104162a5",
  28. plenary = "a672e11c816d4a91ef01253ba1a2567d20e08e55",
  29. popup = "b7404d35d5d3548a82149238289fa71f7f6de4ac",
  30. project = "71d0e23dcfc43cfd6bb2a97dc5a7de1ab47a6538",
  31. structlog = "6f1403a192791ff1fa7ac845a73de9e860f781f1",
  32. telescope = "88437804e157196f053d0fa62dc891facd9ab746",
  33. telescope_fzf_native = "b8662b076175e75e6497c59f3e2799b879d7b954",
  34. toggleterm = "265bbff68fbb8b2a5fb011272ec469850254ec9f",
  35. which_key = "312c386ee0eafc925c27869d2be9c11ebdb807eb",
  36. }
  37. return {
  38. -- Packer can manage itself as an optional plugin
  39. { "wbthomason/packer.nvim", commit = commit.packer },
  40. { "neovim/nvim-lspconfig", commit = commit.nvim_lspconfig },
  41. { "tamago324/nlsp-settings.nvim", commit = commit.nlsp_settings },
  42. {
  43. "jose-elias-alvarez/null-ls.nvim",
  44. commit = commit.null_ls,
  45. },
  46. { "antoinemadec/FixCursorHold.nvim", commit = commit.fixcursorhold }, -- Needed while issue https://github.com/neovim/neovim/issues/12587 is still open
  47. {
  48. "williamboman/nvim-lsp-installer",
  49. commit = commit.nvim_lsp_installer,
  50. },
  51. {
  52. "rcarriga/nvim-notify",
  53. commit = commit.nvim_notify,
  54. disable = not lvim.builtin.notify.active,
  55. },
  56. { "Tastyep/structlog.nvim", commit = commit.structlog },
  57. { "nvim-lua/popup.nvim", commit = commit.popup },
  58. { "nvim-lua/plenary.nvim", commit = commit.plenary },
  59. -- Telescope
  60. {
  61. "nvim-telescope/telescope.nvim",
  62. commit = commit.telescope,
  63. config = function()
  64. require("lvim.core.telescope").setup()
  65. end,
  66. disable = not lvim.builtin.telescope.active,
  67. },
  68. {
  69. "nvim-telescope/telescope-fzf-native.nvim",
  70. commit = commit.telescope_fzf_native,
  71. run = "make",
  72. disable = not lvim.builtin.telescope.active,
  73. },
  74. -- Install nvim-cmp, and buffer source as a dependency
  75. {
  76. "hrsh7th/nvim-cmp",
  77. commit = commit.nvim_cmp,
  78. config = function()
  79. if lvim.builtin.cmp then
  80. require("lvim.core.cmp").setup()
  81. end
  82. end,
  83. requires = {
  84. "L3MON4D3/LuaSnip",
  85. "rafamadriz/friendly-snippets",
  86. },
  87. },
  88. {
  89. "rafamadriz/friendly-snippets",
  90. commit = commit.friendly_snippets,
  91. },
  92. {
  93. "L3MON4D3/LuaSnip",
  94. config = function()
  95. require("luasnip/loaders/from_vscode").lazy_load()
  96. end,
  97. commit = commit.luasnip,
  98. },
  99. {
  100. "hrsh7th/cmp-nvim-lsp",
  101. commit = commit.cmp_nvim_lsp,
  102. },
  103. {
  104. "saadparwaiz1/cmp_luasnip",
  105. commit = commit.cmp_luasnip,
  106. },
  107. {
  108. "hrsh7th/cmp-buffer",
  109. commit = commit.cmp_buffer,
  110. },
  111. {
  112. "hrsh7th/cmp-path",
  113. commit = commit.cmp_path,
  114. },
  115. {
  116. "folke/lua-dev.nvim",
  117. module = "lua-dev",
  118. commit = commit.lua_dev,
  119. },
  120. -- Autopairs
  121. {
  122. "windwp/nvim-autopairs",
  123. commit = commit.nvim_autopairs,
  124. -- event = "InsertEnter",
  125. config = function()
  126. require("lvim.core.autopairs").setup()
  127. end,
  128. disable = not lvim.builtin.autopairs.active,
  129. },
  130. -- Treesitter
  131. {
  132. "nvim-treesitter/nvim-treesitter",
  133. commit = commit.nvim_treesitter,
  134. branch = vim.fn.has "nvim-0.6" == 1 and "master" or "0.5-compat",
  135. -- run = ":TSUpdate",
  136. config = function()
  137. require("lvim.core.treesitter").setup()
  138. end,
  139. },
  140. {
  141. "JoosepAlviste/nvim-ts-context-commentstring",
  142. commit = commit.nvim_ts_context_commentstring,
  143. event = "BufReadPost",
  144. },
  145. -- NvimTree
  146. {
  147. "kyazdani42/nvim-tree.lua",
  148. -- event = "BufWinOpen",
  149. -- cmd = "NvimTreeToggle",
  150. commit = commit.nvim_tree,
  151. config = function()
  152. require("lvim.core.nvimtree").setup()
  153. end,
  154. disable = not lvim.builtin.nvimtree.active,
  155. },
  156. {
  157. "lewis6991/gitsigns.nvim",
  158. commit = commit.gitsigns,
  159. config = function()
  160. require("lvim.core.gitsigns").setup()
  161. end,
  162. event = "BufRead",
  163. disable = not lvim.builtin.gitsigns.active,
  164. },
  165. -- Whichkey
  166. {
  167. "folke/which-key.nvim",
  168. commit = commit.which_key,
  169. config = function()
  170. require("lvim.core.which-key").setup()
  171. end,
  172. event = "BufWinEnter",
  173. disable = not lvim.builtin.which_key.active,
  174. },
  175. -- Comments
  176. {
  177. "numToStr/Comment.nvim",
  178. commit = commit.comment,
  179. event = "BufRead",
  180. config = function()
  181. require("lvim.core.comment").setup()
  182. end,
  183. disable = not lvim.builtin.comment.active,
  184. },
  185. -- project.nvim
  186. {
  187. "ahmedkhalf/project.nvim",
  188. commit = commit.project,
  189. config = function()
  190. require("lvim.core.project").setup()
  191. end,
  192. disable = not lvim.builtin.project.active,
  193. },
  194. -- Icons
  195. { "kyazdani42/nvim-web-devicons", commit = commit.nvim_web_devicons },
  196. -- Status Line and Bufferline
  197. {
  198. -- "hoob3rt/lualine.nvim",
  199. "nvim-lualine/lualine.nvim",
  200. commit = commit.lualine,
  201. -- "Lunarvim/lualine.nvim",
  202. config = function()
  203. require("lvim.core.lualine").setup()
  204. end,
  205. disable = not lvim.builtin.lualine.active,
  206. },
  207. {
  208. "romgrk/barbar.nvim",
  209. commit = commit.barbar,
  210. config = function()
  211. require("lvim.core.bufferline").setup()
  212. end,
  213. event = "BufWinEnter",
  214. disable = not lvim.builtin.bufferline.active,
  215. },
  216. -- Debugging
  217. {
  218. "mfussenegger/nvim-dap",
  219. commit = commit.nvim_dap,
  220. -- event = "BufWinEnter",
  221. config = function()
  222. require("lvim.core.dap").setup()
  223. end,
  224. disable = not lvim.builtin.dap.active,
  225. },
  226. -- Debugger management
  227. {
  228. "Pocco81/DAPInstall.nvim",
  229. commit = commit.dapinstall,
  230. -- event = "BufWinEnter",
  231. -- event = "BufRead",
  232. disable = not lvim.builtin.dap.active,
  233. },
  234. -- Dashboard
  235. {
  236. "ChristianChiarulli/dashboard-nvim",
  237. event = "BufWinEnter",
  238. config = function()
  239. require("lvim.core.dashboard").setup()
  240. end,
  241. disable = not lvim.builtin.dashboard.active,
  242. },
  243. -- Terminal
  244. {
  245. "akinsho/toggleterm.nvim",
  246. commit = commit.toggleterm,
  247. event = "BufWinEnter",
  248. config = function()
  249. require("lvim.core.terminal").setup()
  250. end,
  251. disable = not lvim.builtin.terminal.active,
  252. },
  253. }