plugins.lua 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. local commit = {
  2. barbar = "6e638309efcad2f308eb9c5eaccf6f62b794bbab",
  3. cmp_buffer = "a0fe52489ff6e235d62407f8fa72aef80222040a",
  4. cmp_luasnip = "75bf6434f175206cd219f9d2bbcae154a009346c",
  5. cmp_nvim_lsp = "134117299ff9e34adde30a735cd8ca9cf8f3db81",
  6. cmp_nvim_lua = "d276254e7198ab7d00f117e88e223b4bd8c02d21",
  7. cmp_path = "d83839ae510d18530c6d36b662a9e806d4dceb73",
  8. comment = "58d489fb7f18c3652adf7e8e1fff9d3281a8fc6a",
  9. dapinstall = "dd09e9dd3a6e29f02ac171515b8a089fb82bb425",
  10. fixcursorhold = "0e4e22d21975da60b0fd2d302285b3b603f9f71e",
  11. friendly_snippets = "4a9516c116f8d3a5766fcb8ac91b176979612d5d",
  12. gitsigns = "aaf680472187798d5945e39179b540bd3bf80341",
  13. lualine = "5596c2a25a49ca235613c804169b9063e20b05f5",
  14. luasnip = "577045e9adf325e58f690f4d4b4a293f3dcec1b3",
  15. nlsp_settings = "599edc32707f53bd9b0739879f013b3bf162ea4e",
  16. null_ls = "fb9e2a64ae8e43c2255025064cfee37dc7d6a752",
  17. nvim_autopairs = "04cd1779f81e9d50d5a116c5dccd054b275bd191",
  18. nvim_cmp = "af07ff9b7973e95eff9e0275e13fe0350281208b",
  19. nvim_dap = "3b3027e0ca98775000e1ba727d8f292e821f9f03",
  20. nvim_lsp_installer = "fcd5d79a7f4966645e9d2f512b85b72f7de0dde2",
  21. nvim_lspconfig = "e6d95863a336b7e52c92b38c62aa60b469254d14",
  22. nvim_notify = "ef027e34b618eac42fb0111c1db670ba01793039",
  23. nvim_tree = "2e33b1654384921ec1cc9656a2018744f3f1ce81",
  24. nvim_treesitter = "1d66657e6d0f1f8f79ddc48ff1dac9788694cc2d",
  25. nvim_ts_context_commentstring = "9f5e422e1030e7073e593ad32c5354aa0bcb0176",
  26. nvim_web_devicons = "344331467509802e1af200f08ec3da278be5cbba",
  27. packer = "851c62c5ecd3b5adc91665feda8f977e104162a5",
  28. plenary = "e6267f79481064eee53950571f53cbaafb08417d",
  29. popup = "b7404d35d5d3548a82149238289fa71f7f6de4ac",
  30. project = "71d0e23dcfc43cfd6bb2a97dc5a7de1ab47a6538",
  31. structlog = "6f1403a192791ff1fa7ac845a73de9e860f781f1",
  32. telescope = "80cdb00b221f69348afc4fb4b701f51eb8dd3120", -- see telescope.nvim#1549
  33. telescope_fzf_native = "b8662b076175e75e6497c59f3e2799b879d7b954",
  34. toggleterm = "265bbff68fbb8b2a5fb011272ec469850254ec9f",
  35. which_key = "0fd9de78fe09215e1b7c6173ff1b0b90c8ed6ec4",
  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.nvim_lspconfig },
  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.fixcursorhold }, -- Needed while issue https://github.com/neovim/neovim/issues/12587 is still open
  47. {
  48. "williamboman/nvim-lsp-installer",
  49. commit = commit.nvim_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. if lvim.builtin.cmp then
  80. require("lvim.core.cmp").setup()
  81. end
  82. end,
  83. requires = {
  84. "L3MON4D3/LuaSnip",
  85. "rafamadriz/friendly-snippets",
  86. },
  87. },
  88. {
  89. "rafamadriz/friendly-snippets",
  90. commit = commit.friendly_snippets,
  91. },
  92. {
  93. "L3MON4D3/LuaSnip",
  94. config = function()
  95. require("luasnip/loaders/from_vscode").lazy_load()
  96. end,
  97. commit = commit.luasnip,
  98. },
  99. {
  100. "hrsh7th/cmp-nvim-lsp",
  101. commit = commit.cmp_nvim_lsp,
  102. },
  103. {
  104. "saadparwaiz1/cmp_luasnip",
  105. commit = commit.cmp_luasnip,
  106. },
  107. {
  108. "hrsh7th/cmp-buffer",
  109. commit = commit.cmp_buffer,
  110. },
  111. {
  112. "hrsh7th/cmp-path",
  113. commit = commit.cmp_path,
  114. },
  115. {
  116. "hrsh7th/cmp-nvim-lua",
  117. commit = commit.cmp_nvim_lua,
  118. },
  119. -- Autopairs
  120. {
  121. "windwp/nvim-autopairs",
  122. commit = commit.nvim_autopairs,
  123. -- event = "InsertEnter",
  124. config = function()
  125. require("lvim.core.autopairs").setup()
  126. end,
  127. disable = not lvim.builtin.autopairs.active,
  128. },
  129. -- Treesitter
  130. {
  131. "nvim-treesitter/nvim-treesitter",
  132. commit = commit.nvim_treesitter,
  133. branch = vim.fn.has "nvim-0.6" == 1 and "master" or "0.5-compat",
  134. -- run = ":TSUpdate",
  135. config = function()
  136. require("lvim.core.treesitter").setup()
  137. end,
  138. },
  139. {
  140. "JoosepAlviste/nvim-ts-context-commentstring",
  141. commit = commit.nvim_ts_context_commentstring,
  142. event = "BufReadPost",
  143. },
  144. -- NvimTree
  145. {
  146. "kyazdani42/nvim-tree.lua",
  147. -- event = "BufWinOpen",
  148. -- cmd = "NvimTreeToggle",
  149. commit = commit.nvim_tree,
  150. config = function()
  151. require("lvim.core.nvimtree").setup()
  152. end,
  153. disable = not lvim.builtin.nvimtree.active,
  154. },
  155. {
  156. "lewis6991/gitsigns.nvim",
  157. commit = commit.gitsigns,
  158. config = function()
  159. require("lvim.core.gitsigns").setup()
  160. end,
  161. event = "BufRead",
  162. disable = not lvim.builtin.gitsigns.active,
  163. },
  164. -- Whichkey
  165. {
  166. "folke/which-key.nvim",
  167. commit = commit.which_key,
  168. config = function()
  169. require("lvim.core.which-key").setup()
  170. end,
  171. event = "BufWinEnter",
  172. disable = not lvim.builtin.which_key.active,
  173. },
  174. -- Comments
  175. {
  176. "numToStr/Comment.nvim",
  177. commit = commit.comment,
  178. event = "BufRead",
  179. config = function()
  180. require("lvim.core.comment").setup()
  181. end,
  182. disable = not lvim.builtin.comment.active,
  183. },
  184. -- project.nvim
  185. {
  186. "ahmedkhalf/project.nvim",
  187. commit = commit.project,
  188. config = function()
  189. require("lvim.core.project").setup()
  190. end,
  191. disable = not lvim.builtin.project.active,
  192. },
  193. -- Icons
  194. { "kyazdani42/nvim-web-devicons", commit = commit.nvim_web_devicons },
  195. -- Status Line and Bufferline
  196. {
  197. -- "hoob3rt/lualine.nvim",
  198. "nvim-lualine/lualine.nvim",
  199. commit = commit.lualine,
  200. -- "Lunarvim/lualine.nvim",
  201. config = function()
  202. require("lvim.core.lualine").setup()
  203. end,
  204. disable = not lvim.builtin.lualine.active,
  205. },
  206. {
  207. "romgrk/barbar.nvim",
  208. commit = commit.barbar,
  209. config = function()
  210. require("lvim.core.bufferline").setup()
  211. end,
  212. event = "BufWinEnter",
  213. disable = not lvim.builtin.bufferline.active,
  214. },
  215. -- Debugging
  216. {
  217. "mfussenegger/nvim-dap",
  218. commit = commit.nvim_dap,
  219. -- event = "BufWinEnter",
  220. config = function()
  221. require("lvim.core.dap").setup()
  222. end,
  223. disable = not lvim.builtin.dap.active,
  224. },
  225. -- Debugger management
  226. {
  227. "Pocco81/DAPInstall.nvim",
  228. commit = commit.dapinstall,
  229. -- event = "BufWinEnter",
  230. -- event = "BufRead",
  231. disable = not lvim.builtin.dap.active,
  232. },
  233. -- Dashboard
  234. {
  235. "ChristianChiarulli/dashboard-nvim",
  236. event = "BufWinEnter",
  237. config = function()
  238. require("lvim.core.dashboard").setup()
  239. end,
  240. disable = not lvim.builtin.dashboard.active,
  241. },
  242. -- Terminal
  243. {
  244. "akinsho/toggleterm.nvim",
  245. commit = commit.toggleterm,
  246. event = "BufWinEnter",
  247. config = function()
  248. require("lvim.core.terminal").setup()
  249. end,
  250. disable = not lvim.builtin.terminal.active,
  251. },
  252. }