plugins.lua 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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 = "81518cf6ae29f5f0c79cd47770ae90ff5225ee13",
  8. comment = "a6e1c127fa7f19ec4e3edbffab1aacb2852b6db3",
  9. dapinstall = "dd09e9dd3a6e29f02ac171515b8a089fb82bb425",
  10. fixcursorhold = "0e4e22d21975da60b0fd2d302285b3b603f9f71e",
  11. friendly_snippets = "0806607c4c49b6823cf4155cf0c30bc28934dea2",
  12. gitsigns = "95845ef39ce0a98f68cdfdcf7dd586c5e965acc7",
  13. lualine = "cf75e1af5a1cafaa0866cf8a11632f48b430115d",
  14. luasnip = "f400b978b1dbca96e9e190b7009c415c09b8924c",
  15. nlsp_settings = "1e75ac7733f6492b501a7594870cf75c4ee23e81",
  16. null_ls = "b07ce47f02c7b12ad65bfb4da215c6380228a959",
  17. nvim_autopairs = "fba2503bd8cd0d8861054523aae39c4ac0680c07",
  18. nvim_cmp = "092fb66b6ddb4b12b9b542d105d7af40e4fbd9f2",
  19. nvim_dap = "4e8bb7ca12dc8ca6f7a500cbb4ecea185665c7f1",
  20. nvim_lsp_installer = "52183c68baf9019c8241b1abf33ba0b6594ab3c8",
  21. nvim_lspconfig = "b53f89c16bcc8052aa56d3a903fcad3aaa774041",
  22. nvim_notify = "54375b724637eb6f29085c582318ae1fd042e717",
  23. nvim_tree = "5d8453dfbd34ab00cb3e8ce39660f9a54cdd35f3",
  24. nvim_treesitter = "47cfda2c6711077625c90902d7722238a8294982",
  25. nvim_ts_context_commentstring = "9f5e422e1030e7073e593ad32c5354aa0bcb0176",
  26. nvim_web_devicons = "8df4988ecf8599fc1f8f387bbf2eae790e4c5ffb",
  27. packer = "7f62848f3a92eac61ae61def5f59ddb5e2cc6823",
  28. plenary = "1c31adb35fcebe921f65e5c6ff6d5481fa5fa5ac",
  29. popup = "b7404d35d5d3548a82149238289fa71f7f6de4ac",
  30. project = "71d0e23dcfc43cfd6bb2a97dc5a7de1ab47a6538",
  31. structlog = "6f1403a192791ff1fa7ac845a73de9e860f781f1",
  32. telescope = "b415e862bf248d66c40e242de4a0c76c68e278f1",
  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. module = "cmp",
  88. },
  89. {
  90. "rafamadriz/friendly-snippets",
  91. commit = commit.friendly_snippets,
  92. },
  93. {
  94. "L3MON4D3/LuaSnip",
  95. config = function()
  96. require("luasnip/loaders/from_vscode").lazy_load()
  97. end,
  98. commit = commit.luasnip,
  99. },
  100. {
  101. "hrsh7th/cmp-nvim-lsp",
  102. commit = commit.cmp_nvim_lsp,
  103. },
  104. {
  105. "saadparwaiz1/cmp_luasnip",
  106. commit = commit.cmp_luasnip,
  107. after = "cmp",
  108. },
  109. {
  110. "hrsh7th/cmp-buffer",
  111. commit = commit.cmp_buffer,
  112. after = "cmp",
  113. },
  114. {
  115. "hrsh7th/cmp-path",
  116. commit = commit.cmp_path,
  117. after = "cmp",
  118. },
  119. {
  120. "hrsh7th/cmp-nvim-lua",
  121. commit = commit.cmp_nvim_lua,
  122. after = "cmp",
  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.treesitter,
  138. branch = "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. }