plugins.lua 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. local commit = {
  2. packer = "7f62848f3a92eac61ae61def5f59ddb5e2cc6823",
  3. lsp_config = "903a1fbca91b74e6fbc905366ce38364b9d7ba98",
  4. nlsp_settings = "29f49afe27b43126d45a05baf3161a28b929f2f1",
  5. null_ls = "cf2bc3185af066cb25f1bf6faa99727e2c47ef77",
  6. fix_cursor_hold = "0e4e22d21975da60b0fd2d302285b3b603f9f71e",
  7. lsp_installer = "37d9326f4ca4093b04eabdb697fec3764e226f88",
  8. nvim_notify = "ee79a5e2f8bde0ebdf99880a98d1312da83a3caa",
  9. structlog = "6f1403a192791ff1fa7ac845a73de9e860f781f1",
  10. popup = "f91d80973f80025d4ed00380f2e06c669dfda49d",
  11. plenary = "96e821e8001c21bc904d3c15aa96a70c11462c5f",
  12. telescope = "078a48db9e0720b07bfcb8b59342c5305a1d1fdc",
  13. telescope_fzf_native = "59e38e1661ffdd586cb7fc22ca0b5a05c7caf988",
  14. nvim_cmp = "ca6386854982199a532150cf3bd711395475ebd2",
  15. friendly_snippets = "94f1d917435c71bc6494d257afa90d4c9449aed2",
  16. autopairs = "f858ab38b532715dbaf7b2773727f8622ba04322",
  17. treesitter = "47cfda2c6711077625c90902d7722238a8294982",
  18. context_commentstring = "159c5b9a2cdb8a8fe342078b7ac8139de76bad62",
  19. nvim_tree = "f92b7e7627c5a36f4af6814c408211539882c4f3",
  20. gitsigns = "61a81b0c003de3e12555a5626d66fb6a060d8aca",
  21. which_key = "d3032b6d3e0adb667975170f626cb693bfc66baa",
  22. comment = "620445b87a0d1640fac6991f9c3338af8dec1884",
  23. project = "3a1f75b18f214064515ffba48d1eb7403364cc6a",
  24. nvim_web_devicons = "ee101462d127ed6a5561ce9ce92bfded87d7d478",
  25. lualine = "3f5cdc51a08c437c7705e283eebd4cf9fbb18f80",
  26. barbar = "6e638309efcad2f308eb9c5eaccf6f62b794bbab",
  27. dap = "dd778f65dc95323f781f291fb7c5bf3c17d057b1",
  28. dap_install = "dd09e9dd3a6e29f02ac171515b8a089fb82bb425",
  29. toggleterm = "5f9ba91157a25be5ee7395fbc11b1a8f25938365",
  30. luasnip = "bab7cc2c32fba00776d2f2fc4704bed4eee2d082",
  31. cmp_luasnip = "16832bb50e760223a403ffa3042859845dd9ef9d",
  32. cmp_buffer = "d1ca295ce584ec80763a6dc043080874b57ccffc",
  33. cmp_nvim_lsp = "accbe6d97548d8d3471c04d512d36fa61d0e4be8",
  34. cmp_path = "97661b00232a2fe145fe48e295875bc3299ed1f7",
  35. cmp_nvim_lua = "d276254e7198ab7d00f117e88e223b4bd8c02d21",
  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.lsp_config },
  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.fix_cursor_hold }, -- Needed while issue https://github.com/neovim/neovim/issues/12587 is still open
  47. {
  48. "williamboman/nvim-lsp-installer",
  49. commit = commit.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. require("lvim.core.cmp").setup()
  80. end,
  81. run = function()
  82. -- cmp's config requires cmp to be installed to run the first time
  83. if not lvim.builtin.cmp then
  84. require("lvim.core.cmp").config()
  85. end
  86. end,
  87. },
  88. {
  89. "rafamadriz/friendly-snippets",
  90. commit = commit.friendly_snippets,
  91. -- event = "InsertCharPre",
  92. -- disable = not lvim.builtin.compe.active,
  93. },
  94. {
  95. "L3MON4D3/LuaSnip",
  96. commit = commit.luasnip,
  97. },
  98. {
  99. "saadparwaiz1/cmp_luasnip",
  100. commit = commit.cmp_luasnip,
  101. },
  102. {
  103. "hrsh7th/cmp-buffer",
  104. commit = commit.cmp_buffer,
  105. },
  106. {
  107. "hrsh7th/cmp-nvim-lsp",
  108. commit = commit.cmp_nvim_lsp,
  109. },
  110. {
  111. "hrsh7th/cmp-path",
  112. commit = commit.cmp_path,
  113. },
  114. {
  115. "hrsh7th/cmp-nvim-lua",
  116. commit = commit.cmp_nvim_lua,
  117. },
  118. -- Autopairs
  119. {
  120. "windwp/nvim-autopairs",
  121. commit = commit.autopairs,
  122. -- event = "InsertEnter",
  123. config = function()
  124. require("lvim.core.autopairs").setup()
  125. end,
  126. disable = not lvim.builtin.autopairs.active,
  127. },
  128. -- Treesitter
  129. {
  130. "nvim-treesitter/nvim-treesitter",
  131. commit = commit.treesitter,
  132. branch = "0.5-compat",
  133. -- run = ":TSUpdate",
  134. config = function()
  135. require("lvim.core.treesitter").setup()
  136. end,
  137. },
  138. {
  139. "JoosepAlviste/nvim-ts-context-commentstring",
  140. commit = commit.context_commentstring,
  141. event = "BufReadPost",
  142. },
  143. -- NvimTree
  144. {
  145. "kyazdani42/nvim-tree.lua",
  146. -- event = "BufWinOpen",
  147. -- cmd = "NvimTreeToggle",
  148. commit = commit.nvim_tree,
  149. config = function()
  150. require("lvim.core.nvimtree").setup()
  151. end,
  152. disable = not lvim.builtin.nvimtree.active,
  153. },
  154. {
  155. "lewis6991/gitsigns.nvim",
  156. commit = commit.gitsigns,
  157. config = function()
  158. require("lvim.core.gitsigns").setup()
  159. end,
  160. event = "BufRead",
  161. disable = not lvim.builtin.gitsigns.active,
  162. },
  163. -- Whichkey
  164. {
  165. "folke/which-key.nvim",
  166. commit = commit.which_key,
  167. config = function()
  168. require("lvim.core.which-key").setup()
  169. end,
  170. event = "BufWinEnter",
  171. disable = not lvim.builtin.which_key.active,
  172. },
  173. -- Comments
  174. {
  175. "numToStr/Comment.nvim",
  176. commit = commit.comment,
  177. event = "BufRead",
  178. config = function()
  179. require("lvim.core.comment").setup()
  180. end,
  181. disable = not lvim.builtin.comment.active,
  182. },
  183. -- project.nvim
  184. {
  185. "ahmedkhalf/project.nvim",
  186. commit = commit.project,
  187. config = function()
  188. require("lvim.core.project").setup()
  189. end,
  190. disable = not lvim.builtin.project.active,
  191. },
  192. -- Icons
  193. { "kyazdani42/nvim-web-devicons", commit = commit.nvim_web_devicons },
  194. -- Status Line and Bufferline
  195. {
  196. -- "hoob3rt/lualine.nvim",
  197. "nvim-lualine/lualine.nvim",
  198. commit = commit.lualine,
  199. -- "Lunarvim/lualine.nvim",
  200. config = function()
  201. require("lvim.core.lualine").setup()
  202. end,
  203. disable = not lvim.builtin.lualine.active,
  204. },
  205. {
  206. "romgrk/barbar.nvim",
  207. commit = commit.barbar,
  208. config = function()
  209. require("lvim.core.bufferline").setup()
  210. end,
  211. event = "BufWinEnter",
  212. disable = not lvim.builtin.bufferline.active,
  213. },
  214. -- Debugging
  215. {
  216. "mfussenegger/nvim-dap",
  217. commit = commit.dap,
  218. -- event = "BufWinEnter",
  219. config = function()
  220. require("lvim.core.dap").setup()
  221. end,
  222. disable = not lvim.builtin.dap.active,
  223. },
  224. -- Debugger management
  225. {
  226. "Pocco81/DAPInstall.nvim",
  227. commit = commit.dap_install,
  228. -- event = "BufWinEnter",
  229. -- event = "BufRead",
  230. disable = not lvim.builtin.dap.active,
  231. },
  232. -- Dashboard
  233. {
  234. "ChristianChiarulli/dashboard-nvim",
  235. event = "BufWinEnter",
  236. config = function()
  237. require("lvim.core.dashboard").setup()
  238. end,
  239. disable = not lvim.builtin.dashboard.active,
  240. },
  241. -- Terminal
  242. {
  243. "akinsho/toggleterm.nvim",
  244. commit = commit.toggleterm,
  245. event = "BufWinEnter",
  246. config = function()
  247. require("lvim.core.terminal").setup()
  248. end,
  249. disable = not lvim.builtin.terminal.active,
  250. },
  251. }