plugins.lua 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. local commit = {
  2. barbar = "6e638309efcad2f308eb9c5eaccf6f62b794bbab",
  3. cmp_buffer = "a706dc69c49110038fe570e5c9c33d6d4f67015b",
  4. cmp_luasnip = "16832bb50e760223a403ffa3042859845dd9ef9d",
  5. cmp_nvim_lsp = "134117299ff9e34adde30a735cd8ca9cf8f3db81",
  6. cmp_nvim_lua = "d276254e7198ab7d00f117e88e223b4bd8c02d21",
  7. cmp_path = "d83839ae510d18530c6d36b662a9e806d4dceb73",
  8. comment = "a6e1c127fa7f19ec4e3edbffab1aacb2852b6db3",
  9. dapinstall = "dd09e9dd3a6e29f02ac171515b8a089fb82bb425",
  10. fixcursorhold = "0e4e22d21975da60b0fd2d302285b3b603f9f71e",
  11. friendly_snippets = "e3506d575e120253b4aa47ec2100786fd1e9c38d",
  12. gitsigns = "119ebde2de917399aa89ad3664000a0e1750895a",
  13. lualine = "1ae4f0aa74f0b34222c5ef3281b34602a76b2b00",
  14. luasnip = "4191d3e475b65407b8ccf47e4dcbf38552fdbb2d",
  15. nlsp_settings = "199bc1b2859206488423b676da4a7d010b1a3373",
  16. null_ls = "73420db2b58408a60a19024be3c14b0eba8413fe",
  17. nvim_autopairs = "18fe311bb967d16ddf2cc28e7e71f234c37d3e26",
  18. nvim_cmp = "d12ba90da372bfe5d9a103546ce1553341a2daff",
  19. nvim_dap = "ce4e56f76598881d020e68037ae91310ea8b9d54",
  20. nvim_lsp_installer = "4df84d7d3e8bcc9b98a1436b6b4155b3a727d41d",
  21. nvim_lspconfig = "382712c4ecba5816f398379dd9d8c8200b025ca3",
  22. nvim_notify = "3f7af5878a890503f9efb7de9f2a0b3f895ad518",
  23. nvim_tree = "e842f088847c98da59e14eb543bde11c45c87ef7",
  24. nvim_treesitter = "d6a0a26b8563409d4660def7320a4f4bc23954df",
  25. nvim_ts_context_commentstring = "9f5e422e1030e7073e593ad32c5354aa0bcb0176",
  26. nvim_web_devicons = "8df4988ecf8599fc1f8f387bbf2eae790e4c5ffb",
  27. packer = "851c62c5ecd3b5adc91665feda8f977e104162a5",
  28. plenary = "1c31adb35fcebe921f65e5c6ff6d5481fa5fa5ac",
  29. popup = "b7404d35d5d3548a82149238289fa71f7f6de4ac",
  30. project = "71d0e23dcfc43cfd6bb2a97dc5a7de1ab47a6538",
  31. structlog = "6f1403a192791ff1fa7ac845a73de9e860f781f1",
  32. telescope = "27294d73e4562cbc83c9c488b4618f012deade7e",
  33. telescope_fzf_native = "b8662b076175e75e6497c59f3e2799b879d7b954",
  34. toggleterm = "265bbff68fbb8b2a5fb011272ec469850254ec9f",
  35. which_key = "d3032b6d3e0adb667975170f626cb693bfc66baa",
  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. "hrsh7th/cmp-nvim-lua",
  117. commit = commit.cmp_nvim_lua,
  118. },
  119. -- Autopairs
  120. {
  121. "windwp/nvim-autopairs",
  122. commit = commit.nvim_autopairs,
  123. -- event = "InsertEnter",
  124. config = function()
  125. require("lvim.core.autopairs").setup()
  126. end,
  127. disable = not lvim.builtin.autopairs.active,
  128. },
  129. -- Treesitter
  130. {
  131. "nvim-treesitter/nvim-treesitter",
  132. commit = commit.treesitter,
  133. branch = "0.5-compat",
  134. -- run = ":TSUpdate",
  135. config = function()
  136. require("lvim.core.treesitter").setup()
  137. end,
  138. },
  139. {
  140. "JoosepAlviste/nvim-ts-context-commentstring",
  141. commit = commit.nvim_ts_context_commentstring,
  142. event = "BufReadPost",
  143. },
  144. -- NvimTree
  145. {
  146. "kyazdani42/nvim-tree.lua",
  147. -- event = "BufWinOpen",
  148. -- cmd = "NvimTreeToggle",
  149. commit = commit.nvim_tree,
  150. config = function()
  151. require("lvim.core.nvimtree").setup()
  152. end,
  153. disable = not lvim.builtin.nvimtree.active,
  154. },
  155. {
  156. "lewis6991/gitsigns.nvim",
  157. commit = commit.gitsigns,
  158. config = function()
  159. require("lvim.core.gitsigns").setup()
  160. end,
  161. event = "BufRead",
  162. disable = not lvim.builtin.gitsigns.active,
  163. },
  164. -- Whichkey
  165. {
  166. "folke/which-key.nvim",
  167. commit = commit.which_key,
  168. config = function()
  169. require("lvim.core.which-key").setup()
  170. end,
  171. event = "BufWinEnter",
  172. disable = not lvim.builtin.which_key.active,
  173. },
  174. -- Comments
  175. {
  176. "numToStr/Comment.nvim",
  177. commit = commit.comment,
  178. event = "BufRead",
  179. config = function()
  180. require("lvim.core.comment").setup()
  181. end,
  182. disable = not lvim.builtin.comment.active,
  183. },
  184. -- project.nvim
  185. {
  186. "ahmedkhalf/project.nvim",
  187. commit = commit.project,
  188. config = function()
  189. require("lvim.core.project").setup()
  190. end,
  191. disable = not lvim.builtin.project.active,
  192. },
  193. -- Icons
  194. { "kyazdani42/nvim-web-devicons", commit = commit.nvim_web_devicons },
  195. -- Status Line and Bufferline
  196. {
  197. -- "hoob3rt/lualine.nvim",
  198. "nvim-lualine/lualine.nvim",
  199. commit = commit.lualine,
  200. -- "Lunarvim/lualine.nvim",
  201. config = function()
  202. require("lvim.core.lualine").setup()
  203. end,
  204. disable = not lvim.builtin.lualine.active,
  205. },
  206. {
  207. "romgrk/barbar.nvim",
  208. commit = commit.barbar,
  209. config = function()
  210. require("lvim.core.bufferline").setup()
  211. end,
  212. event = "BufWinEnter",
  213. disable = not lvim.builtin.bufferline.active,
  214. },
  215. -- Debugging
  216. {
  217. "mfussenegger/nvim-dap",
  218. commit = commit.nvim_dap,
  219. -- event = "BufWinEnter",
  220. config = function()
  221. require("lvim.core.dap").setup()
  222. end,
  223. disable = not lvim.builtin.dap.active,
  224. },
  225. -- Debugger management
  226. {
  227. "Pocco81/DAPInstall.nvim",
  228. commit = commit.dapinstall,
  229. -- event = "BufWinEnter",
  230. -- event = "BufRead",
  231. disable = not lvim.builtin.dap.active,
  232. },
  233. -- Dashboard
  234. {
  235. "ChristianChiarulli/dashboard-nvim",
  236. event = "BufWinEnter",
  237. config = function()
  238. require("lvim.core.dashboard").setup()
  239. end,
  240. disable = not lvim.builtin.dashboard.active,
  241. },
  242. -- Terminal
  243. {
  244. "akinsho/toggleterm.nvim",
  245. commit = commit.toggleterm,
  246. event = "BufWinEnter",
  247. config = function()
  248. require("lvim.core.terminal").setup()
  249. end,
  250. disable = not lvim.builtin.terminal.active,
  251. },
  252. }