plugins.lua 7.7 KB

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