plugins.lua 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. dashboard_nvim = "d82ddae95fd4dc4c3b7bbe87f09b1840fbf20ecb",
  10. fixcursorhold = "0e4e22d21975da60b0fd2d302285b3b603f9f71e",
  11. friendly_snippets = "9f04462bcabfd108341a6e47ed742b09a6a5b975",
  12. gitsigns = "c18fc65c77abf95ac2e7783b9e7455a7a2fab26c",
  13. lua_dev = "03a44ec6a54b0a025a633978e8541584a02e46d9",
  14. lualine = "fd8fa5ddd823e15721ddec560ea61e7372e746a7",
  15. luasnip = "ed0140696fa99ea072bc485c87d22a396c477db3",
  16. nlsp_settings = "97125eeb68a412f11885dffe5fdcc3a26d36c58d",
  17. null_ls = "48ac5bcd4d766b371d91024d10c7c83fb909e388",
  18. nvim_autopairs = "5348e4a778ebdf42126a54fb5a933a98612df6cb",
  19. nvim_cmp = "9f6d2b42253dda8db950ab38795978e5420a93aa",
  20. nvim_dap = "3f1514d020f9d73a458ac04f42d27e5b284c0e48",
  21. nvim_lsp_installer = "2e81b1d86f90c8a05d7f875599818612bd68e1a7",
  22. nvim_lspconfig = "c7081e00fa8100ee099c16e375f3e5e838cbf1db",
  23. nvim_notify = "15f52efacd169ea26b0f4070451d3ea53f98cd5a",
  24. nvim_tree = "0a2f6b0b6ba558a88c77a6b262af647760e6eca8",
  25. nvim_treesitter = "a7c0c1764b0b583d0597108dd7d48bc5c0f98c81",
  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 = "f06dd06bb1143caa779e492ca37e5f985f0c6157",
  34. telescope_fzf_native = "b8662b076175e75e6497c59f3e2799b879d7b954",
  35. toggleterm = "463843d1ba0288eedaf834872c3eca114d45bddf",
  36. which_key = "312c386ee0eafc925c27869d2be9c11ebdb807eb",
  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. "zeertzjq/which-key.nvim",
  175. branch = "patch-1",
  176. config = function()
  177. require("lvim.core.which-key").setup()
  178. end,
  179. event = "BufWinEnter",
  180. disable = not lvim.builtin.which_key.active,
  181. },
  182. -- Comments
  183. {
  184. "numToStr/Comment.nvim",
  185. commit = commit.comment,
  186. event = "BufRead",
  187. config = function()
  188. require("lvim.core.comment").setup()
  189. end,
  190. disable = not lvim.builtin.comment.active,
  191. },
  192. -- project.nvim
  193. {
  194. "ahmedkhalf/project.nvim",
  195. commit = commit.project,
  196. config = function()
  197. require("lvim.core.project").setup()
  198. end,
  199. disable = not lvim.builtin.project.active,
  200. },
  201. -- Icons
  202. { "kyazdani42/nvim-web-devicons", commit = commit.nvim_web_devicons },
  203. -- Status Line and Bufferline
  204. {
  205. -- "hoob3rt/lualine.nvim",
  206. "nvim-lualine/lualine.nvim",
  207. commit = commit.lualine,
  208. -- "Lunarvim/lualine.nvim",
  209. config = function()
  210. require("lvim.core.lualine").setup()
  211. end,
  212. disable = not lvim.builtin.lualine.active,
  213. },
  214. {
  215. "romgrk/barbar.nvim",
  216. commit = commit.barbar,
  217. config = function()
  218. require("lvim.core.bufferline").setup()
  219. end,
  220. event = "BufWinEnter",
  221. disable = not lvim.builtin.bufferline.active,
  222. },
  223. -- Debugging
  224. {
  225. "mfussenegger/nvim-dap",
  226. commit = commit.nvim_dap,
  227. -- event = "BufWinEnter",
  228. config = function()
  229. require("lvim.core.dap").setup()
  230. end,
  231. disable = not lvim.builtin.dap.active,
  232. },
  233. -- Debugger management
  234. {
  235. "Pocco81/DAPInstall.nvim",
  236. commit = commit.dapinstall,
  237. -- event = "BufWinEnter",
  238. -- event = "BufRead",
  239. disable = not lvim.builtin.dap.active,
  240. },
  241. -- Dashboard
  242. {
  243. "ChristianChiarulli/dashboard-nvim",
  244. event = "BufWinEnter",
  245. config = function()
  246. require("lvim.core.dashboard").setup()
  247. end,
  248. disable = not lvim.builtin.dashboard.active,
  249. },
  250. -- Terminal
  251. {
  252. "akinsho/toggleterm.nvim",
  253. commit = commit.toggleterm,
  254. event = "BufWinEnter",
  255. config = function()
  256. require("lvim.core.terminal").setup()
  257. end,
  258. disable = not lvim.builtin.terminal.active,
  259. },
  260. }