plugins.lua 7.5 KB

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