plugins.lua 6.8 KB

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