plugins.lua 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. local commit = {
  2. packer = "7f62848f3a92eac61ae61def5f59ddb5e2cc6823",
  3. lsp_config = "6224c54a9945a52bf43a8bc1a42a112084590c0b",
  4. nlsp_settings = "29f49afe27b43126d45a05baf3161a28b929f2f1",
  5. null_ls = "64b269b51c7490660dcb2008f59ae260f2cdbbe4",
  6. fix_cursor_hold = "0e4e22d21975da60b0fd2d302285b3b603f9f71e",
  7. lsp_installer = "c9dbc8afc2d56227ed0cba5a3348b8dd170e3a1d",
  8. nvim_notify = "ee79a5e2f8bde0ebdf99880a98d1312da83a3caa",
  9. structlog = "6f1403a192791ff1fa7ac845a73de9e860f781f1",
  10. popup = "f91d80973f80025d4ed00380f2e06c669dfda49d",
  11. plenary = "96e821e8001c21bc904d3c15aa96a70c11462c5f",
  12. telescope = "078a48db9e0720b07bfcb8b59342c5305a1d1fdc",
  13. telescope_fzf_native = "59e38e1661ffdd586cb7fc22ca0b5a05c7caf988",
  14. nvim_cmp = "1774ff0f842146521c63707245d3de5db2bb3732",
  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. { "jose-elias-alvarez/null-ls.nvim", commit = commit.null_ls },
  43. { "antoinemadec/FixCursorHold.nvim", commit = commit.fix_cursor_hold }, -- Needed while issue https://github.com/neovim/neovim/issues/12587 is still open
  44. {
  45. "williamboman/nvim-lsp-installer",
  46. commit = commit.lsp_installer,
  47. },
  48. {
  49. "rcarriga/nvim-notify",
  50. commit = commit.nvim_notify,
  51. disable = not lvim.builtin.notify.active,
  52. },
  53. { "Tastyep/structlog.nvim", commit = commit.structlog },
  54. { "nvim-lua/popup.nvim", commit = commit.popup },
  55. { "nvim-lua/plenary.nvim", commit = commit.plenary },
  56. -- Telescope
  57. {
  58. "nvim-telescope/telescope.nvim",
  59. commit = commit.telescope,
  60. config = function()
  61. require("lvim.core.telescope").setup()
  62. end,
  63. disable = not lvim.builtin.telescope.active,
  64. },
  65. {
  66. "nvim-telescope/telescope-fzf-native.nvim",
  67. commit = commit.telescope_fzf_native,
  68. run = "make",
  69. disable = not lvim.builtin.telescope.active,
  70. },
  71. -- Install nvim-cmp, and buffer source as a dependency
  72. {
  73. "hrsh7th/nvim-cmp",
  74. commit = commit.nvim_cmp,
  75. config = function()
  76. require("lvim.core.cmp").setup()
  77. end,
  78. run = function()
  79. -- cmp's config requires cmp to be installed to run the first time
  80. if not lvim.builtin.cmp then
  81. require("lvim.core.cmp").config()
  82. end
  83. end,
  84. },
  85. {
  86. "rafamadriz/friendly-snippets",
  87. commit = commit.friendly_snippets,
  88. -- event = "InsertCharPre",
  89. -- disable = not lvim.builtin.compe.active,
  90. },
  91. {
  92. "L3MON4D3/LuaSnip",
  93. commit = commit.luasnip,
  94. },
  95. {
  96. "saadparwaiz1/cmp_luasnip",
  97. commit = commit.cmp_luasnip,
  98. },
  99. {
  100. "hrsh7th/cmp-buffer",
  101. commit = commit.cmp_buffer,
  102. },
  103. {
  104. "hrsh7th/cmp-nvim-lsp",
  105. commit = commit.cmp_nvim_lsp,
  106. },
  107. {
  108. "hrsh7th/cmp-path",
  109. commit = commit.cmp_path,
  110. },
  111. {
  112. "hrsh7th/cmp-nvim-lua",
  113. commit = commit.cmp_nvim_lua,
  114. },
  115. -- Autopairs
  116. {
  117. "windwp/nvim-autopairs",
  118. commit = commit.autopairs,
  119. -- event = "InsertEnter",
  120. config = function()
  121. require("lvim.core.autopairs").setup()
  122. end,
  123. disable = not lvim.builtin.autopairs.active,
  124. },
  125. -- Treesitter
  126. {
  127. "nvim-treesitter/nvim-treesitter",
  128. commit = commit.treesitter,
  129. branch = "0.5-compat",
  130. -- run = ":TSUpdate",
  131. config = function()
  132. require("lvim.core.treesitter").setup()
  133. end,
  134. },
  135. {
  136. "JoosepAlviste/nvim-ts-context-commentstring",
  137. commit = commit.context_commentstring,
  138. event = "BufReadPost",
  139. },
  140. -- NvimTree
  141. {
  142. "kyazdani42/nvim-tree.lua",
  143. -- event = "BufWinOpen",
  144. -- cmd = "NvimTreeToggle",
  145. commit = commit.nvim_tree,
  146. config = function()
  147. require("lvim.core.nvimtree").setup()
  148. end,
  149. disable = not lvim.builtin.nvimtree.active,
  150. },
  151. {
  152. "lewis6991/gitsigns.nvim",
  153. commit = commit.gitsigns,
  154. config = function()
  155. require("lvim.core.gitsigns").setup()
  156. end,
  157. event = "BufRead",
  158. disable = not lvim.builtin.gitsigns.active,
  159. },
  160. -- Whichkey
  161. {
  162. "folke/which-key.nvim",
  163. commit = commit.which_key,
  164. config = function()
  165. require("lvim.core.which-key").setup()
  166. end,
  167. event = "BufWinEnter",
  168. disable = not lvim.builtin.which_key.active,
  169. },
  170. -- Comments
  171. {
  172. "numToStr/Comment.nvim",
  173. commit = commit.comment,
  174. event = "BufRead",
  175. config = function()
  176. require("lvim.core.comment").setup()
  177. end,
  178. disable = not lvim.builtin.comment.active,
  179. },
  180. -- project.nvim
  181. {
  182. "ahmedkhalf/project.nvim",
  183. commit = commit.project,
  184. config = function()
  185. require("lvim.core.project").setup()
  186. end,
  187. disable = not lvim.builtin.project.active,
  188. },
  189. -- Icons
  190. { "kyazdani42/nvim-web-devicons", commit = commit.nvim_web_devicons },
  191. -- Status Line and Bufferline
  192. {
  193. -- "hoob3rt/lualine.nvim",
  194. "nvim-lualine/lualine.nvim",
  195. commit = commit.lualine,
  196. -- "Lunarvim/lualine.nvim",
  197. config = function()
  198. require("lvim.core.lualine").setup()
  199. end,
  200. disable = not lvim.builtin.lualine.active,
  201. },
  202. {
  203. "romgrk/barbar.nvim",
  204. commit = commit.barbar,
  205. config = function()
  206. require("lvim.core.bufferline").setup()
  207. end,
  208. event = "BufWinEnter",
  209. disable = not lvim.builtin.bufferline.active,
  210. },
  211. -- Debugging
  212. {
  213. "mfussenegger/nvim-dap",
  214. commit = commit.dap,
  215. -- event = "BufWinEnter",
  216. config = function()
  217. require("lvim.core.dap").setup()
  218. end,
  219. disable = not lvim.builtin.dap.active,
  220. },
  221. -- Debugger management
  222. {
  223. "Pocco81/DAPInstall.nvim",
  224. commit = commit.dap_install,
  225. -- event = "BufWinEnter",
  226. -- event = "BufRead",
  227. disable = not lvim.builtin.dap.active,
  228. },
  229. -- Dashboard
  230. {
  231. "ChristianChiarulli/dashboard-nvim",
  232. event = "BufWinEnter",
  233. config = function()
  234. require("lvim.core.dashboard").setup()
  235. end,
  236. disable = not lvim.builtin.dashboard.active,
  237. },
  238. -- Terminal
  239. {
  240. "akinsho/toggleterm.nvim",
  241. commit = commit.toggleterm,
  242. event = "BufWinEnter",
  243. config = function()
  244. require("lvim.core.terminal").setup()
  245. end,
  246. disable = not lvim.builtin.terminal.active,
  247. },
  248. }