plugins.lua 6.8 KB

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