plugins.lua 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. local commit = {
  2. barbar = "6e638309efcad2f308eb9c5eaccf6f62b794bbab",
  3. cmp_buffer = "f83773e2f433a923997c5faad7ea689ec24d1785",
  4. cmp_luasnip = "d6f837f4e8fe48eeae288e638691b91b97d1737f",
  5. cmp_nvim_lsp = "b4251f0fca1daeb6db5d60a23ca81507acf858c2",
  6. cmp_path = "4d58224e315426e5ac4c5b218ca86cab85f80c79",
  7. comment = "90df2f87c0b17193d073d1f72cea2e528e5b162d",
  8. dapinstall = "dd09e9dd3a6e29f02ac171515b8a089fb82bb425",
  9. fixcursorhold = "0e4e22d21975da60b0fd2d302285b3b603f9f71e",
  10. friendly_snippets = "9f04462bcabfd108341a6e47ed742b09a6a5b975",
  11. gitsigns = "c18fc65c77abf95ac2e7783b9e7455a7a2fab26c",
  12. lua_dev = "03a44ec6a54b0a025a633978e8541584a02e46d9",
  13. lualine = "52725d2ca87c38e3cf479993afcbdd36e5c81a26",
  14. luasnip = "ed0140696fa99ea072bc485c87d22a396c477db3",
  15. nlsp_settings = "90fbd2c736e5221427aa132fefd4d7f23e9114ee",
  16. null_ls = "b75effe6cb304e97901289f3f2e8d2ba77c7b752",
  17. nvim_autopairs = "96858723f1cba6a3eb004373a20c315d90584ea6",
  18. nvim_cmp = "1b94aacada96d2a33fef2ecf87748b27a2f50630",
  19. nvim_dap = "a6fa644f9de62c594a8a9cf6f2aaf324b5a6108b",
  20. nvim_lsp_installer = "3805f06d3e5b25996563fd9740a90014948bc31a",
  21. nvim_lspconfig = "c0310ab4c7ac864031bbf82b07809b36df54a9d2",
  22. nvim_notify = "15f52efacd169ea26b0f4070451d3ea53f98cd5a",
  23. nvim_tree = "0a2f6b0b6ba558a88c77a6b262af647760e6eca8",
  24. nvim_treesitter = "e81a60b6927521f7dc218ddb00e2c7fb6b1d797d",
  25. nvim_ts_context_commentstring = "097df33c9ef5bbd3828105e4bee99965b758dc3f",
  26. nvim_web_devicons = "ac71ca88b1136e1ecb2aefef4948130f31aa40d1",
  27. packer = "851c62c5ecd3b5adc91665feda8f977e104162a5",
  28. plenary = "563d9f6d083f0514548f2ac4ad1888326d0a1c66",
  29. popup = "b7404d35d5d3548a82149238289fa71f7f6de4ac",
  30. project = "71d0e23dcfc43cfd6bb2a97dc5a7de1ab47a6538",
  31. structlog = "6f1403a192791ff1fa7ac845a73de9e860f781f1",
  32. telescope = "a01ebd2793999c11d727fd15b1e5979ba20c7503",
  33. telescope_fzf_native = "b8662b076175e75e6497c59f3e2799b879d7b954",
  34. toggleterm = "ce92e485a9a731405393af2bd1aff5b49ba9eb73",
  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. config = function()
  56. require("lvim.core.notify").setup()
  57. end,
  58. event = "BufRead",
  59. },
  60. { "Tastyep/structlog.nvim", commit = commit.structlog },
  61. { "nvim-lua/popup.nvim", commit = commit.popup },
  62. { "nvim-lua/plenary.nvim", commit = commit.plenary },
  63. -- Telescope
  64. {
  65. "nvim-telescope/telescope.nvim",
  66. commit = commit.telescope,
  67. config = function()
  68. require("lvim.core.telescope").setup()
  69. end,
  70. disable = not lvim.builtin.telescope.active,
  71. },
  72. {
  73. "nvim-telescope/telescope-fzf-native.nvim",
  74. commit = commit.telescope_fzf_native,
  75. run = "make",
  76. disable = not lvim.builtin.telescope.active,
  77. },
  78. -- Install nvim-cmp, and buffer source as a dependency
  79. {
  80. "hrsh7th/nvim-cmp",
  81. commit = commit.nvim_cmp,
  82. config = function()
  83. if lvim.builtin.cmp then
  84. require("lvim.core.cmp").setup()
  85. end
  86. end,
  87. requires = {
  88. "L3MON4D3/LuaSnip",
  89. "rafamadriz/friendly-snippets",
  90. },
  91. },
  92. {
  93. "rafamadriz/friendly-snippets",
  94. commit = commit.friendly_snippets,
  95. },
  96. {
  97. "L3MON4D3/LuaSnip",
  98. config = function()
  99. require("luasnip/loaders/from_vscode").lazy_load()
  100. end,
  101. commit = commit.luasnip,
  102. },
  103. {
  104. "hrsh7th/cmp-nvim-lsp",
  105. commit = commit.cmp_nvim_lsp,
  106. },
  107. {
  108. "saadparwaiz1/cmp_luasnip",
  109. commit = commit.cmp_luasnip,
  110. },
  111. {
  112. "hrsh7th/cmp-buffer",
  113. commit = commit.cmp_buffer,
  114. },
  115. {
  116. "hrsh7th/cmp-path",
  117. commit = commit.cmp_path,
  118. },
  119. {
  120. "folke/lua-dev.nvim",
  121. module = "lua-dev",
  122. commit = commit.lua_dev,
  123. },
  124. -- Autopairs
  125. {
  126. "windwp/nvim-autopairs",
  127. commit = commit.nvim_autopairs,
  128. -- event = "InsertEnter",
  129. config = function()
  130. require("lvim.core.autopairs").setup()
  131. end,
  132. disable = not lvim.builtin.autopairs.active,
  133. },
  134. -- Treesitter
  135. {
  136. "nvim-treesitter/nvim-treesitter",
  137. commit = commit.nvim_treesitter,
  138. branch = vim.fn.has "nvim-0.6" == 1 and "master" or "0.5-compat",
  139. -- run = ":TSUpdate",
  140. config = function()
  141. require("lvim.core.treesitter").setup()
  142. end,
  143. },
  144. {
  145. "JoosepAlviste/nvim-ts-context-commentstring",
  146. commit = commit.nvim_ts_context_commentstring,
  147. event = "BufReadPost",
  148. },
  149. -- NvimTree
  150. {
  151. "kyazdani42/nvim-tree.lua",
  152. -- event = "BufWinOpen",
  153. -- cmd = "NvimTreeToggle",
  154. commit = commit.nvim_tree,
  155. config = function()
  156. require("lvim.core.nvimtree").setup()
  157. end,
  158. disable = not lvim.builtin.nvimtree.active,
  159. },
  160. {
  161. "lewis6991/gitsigns.nvim",
  162. commit = commit.gitsigns,
  163. config = function()
  164. require("lvim.core.gitsigns").setup()
  165. end,
  166. event = "BufRead",
  167. disable = not lvim.builtin.gitsigns.active,
  168. },
  169. -- Whichkey
  170. {
  171. "folke/which-key.nvim",
  172. commit = commit.which_key,
  173. config = function()
  174. require("lvim.core.which-key").setup()
  175. end,
  176. event = "BufWinEnter",
  177. disable = not lvim.builtin.which_key.active,
  178. },
  179. -- Comments
  180. {
  181. "numToStr/Comment.nvim",
  182. commit = commit.comment,
  183. event = "BufRead",
  184. config = function()
  185. require("lvim.core.comment").setup()
  186. end,
  187. disable = not lvim.builtin.comment.active,
  188. },
  189. -- project.nvim
  190. {
  191. "ahmedkhalf/project.nvim",
  192. commit = commit.project,
  193. config = function()
  194. require("lvim.core.project").setup()
  195. end,
  196. disable = not lvim.builtin.project.active,
  197. },
  198. -- Icons
  199. { "kyazdani42/nvim-web-devicons", commit = commit.nvim_web_devicons },
  200. -- Status Line and Bufferline
  201. {
  202. -- "hoob3rt/lualine.nvim",
  203. "nvim-lualine/lualine.nvim",
  204. commit = commit.lualine,
  205. -- "Lunarvim/lualine.nvim",
  206. config = function()
  207. require("lvim.core.lualine").setup()
  208. end,
  209. disable = not lvim.builtin.lualine.active,
  210. },
  211. {
  212. "romgrk/barbar.nvim",
  213. commit = commit.barbar,
  214. config = function()
  215. require("lvim.core.bufferline").setup()
  216. end,
  217. event = "BufWinEnter",
  218. disable = not lvim.builtin.bufferline.active,
  219. },
  220. -- Debugging
  221. {
  222. "mfussenegger/nvim-dap",
  223. commit = commit.nvim_dap,
  224. -- event = "BufWinEnter",
  225. config = function()
  226. require("lvim.core.dap").setup()
  227. end,
  228. disable = not lvim.builtin.dap.active,
  229. },
  230. -- Debugger management
  231. {
  232. "Pocco81/DAPInstall.nvim",
  233. commit = commit.dapinstall,
  234. -- event = "BufWinEnter",
  235. -- event = "BufRead",
  236. disable = not lvim.builtin.dap.active,
  237. },
  238. -- Dashboard
  239. {
  240. "ChristianChiarulli/dashboard-nvim",
  241. event = "BufWinEnter",
  242. config = function()
  243. require("lvim.core.dashboard").setup()
  244. end,
  245. disable = not lvim.builtin.dashboard.active,
  246. },
  247. -- Terminal
  248. {
  249. "akinsho/toggleterm.nvim",
  250. commit = commit.toggleterm,
  251. event = "BufWinEnter",
  252. config = function()
  253. require("lvim.core.terminal").setup()
  254. end,
  255. disable = not lvim.builtin.terminal.active,
  256. },
  257. }