plugins.lua 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. local commit = {
  2. bufferline = "f63be9a3a3429a726af14c9085d547281bdf38cc",
  3. cmp_buffer = "d66c4c2d376e5be99db68d2362cd94d250987525",
  4. cmp_luasnip = "d6f837f4e8fe48eeae288e638691b91b97d1737f",
  5. cmp_nvim_lsp = "ebdfc204afb87f15ce3d3d3f5df0b8181443b5ba",
  6. cmp_path = "466b6b8270f7ba89abd59f402c73f63c7331ff6e",
  7. comment = "a841f73523440c4f32d39f0290cf1e691311db2a",
  8. dapinstall = "24923c3819a450a772bb8f675926d530e829665f",
  9. dashboard_nvim = "d82ddae95fd4dc4c3b7bbe87f09b1840fbf20ecb",
  10. fixcursorhold = "1bfb32e7ba1344925ad815cb0d7f901dbc0ff7c1",
  11. friendly_snippets = "ad07b2844021b20797adda5b483265802559a693",
  12. gitsigns = "2df360de757c39c04076cb04bcbbd361dec3c8c2",
  13. lua_dev = "a0ee77789d9948adce64d98700cc90cecaef88d5",
  14. lualine = "181b14348f513e6f9eb3bdd2252e13630094fdd3",
  15. luasnip = "ee350179f842699a42b3d6277b2ded8ce73bdc33",
  16. nlsp_settings = "ea9b88e289359843c3cc5bfbf42e5ed9cc3df5f2",
  17. null_ls = "041601cb03daa8982c5af6edc6641f4b97e9d6b5",
  18. nvim_autopairs = "6617498bea01c9c628406d7e23030da57f2f8718",
  19. nvim_cmp = "71d7f46b930bf08e982925c77bd9b0a9808c1162",
  20. nvim_dap = "3d0575a777610b364fea745b85ad497d56b8009a",
  21. nvim_lsp_installer = "dc783087bef65cc7c2943d8641ff1b6dfff6e5a9",
  22. nvim_lspconfig = "710deb04d9f8b73517e1d995a57a1505cbbaac51",
  23. nvim_notify = "f81b48d298c0ff7479b66568d9cc1a4794c196d0",
  24. nvim_tree = "20797a8d74e68bce50b98455c76c5de250c6f0e5",
  25. nvim_treesitter = "fd92e70c69330dd8f2f6753d3d987c34e7dacd24",
  26. nvim_ts_context_commentstring = "097df33c9ef5bbd3828105e4bee99965b758dc3f",
  27. nvim_web_devicons = "4415d1aaa56f73b9c05795af84d625c610b05d3b",
  28. packer = "c576ab3f1488ee86d60fd340d01ade08dcabd256",
  29. plenary = "14dfb4071022b22e08384ee125a5607464b6d397",
  30. popup = "b7404d35d5d3548a82149238289fa71f7f6de4ac",
  31. project = "cef52b8da07648b750d7f1e8fb93f12cb9482988",
  32. schemastore = "265eabf9f8ab33cc6bf1683c286b04e280a2b2e7",
  33. structlog = "6f1403a192791ff1fa7ac845a73de9e860f781f1",
  34. telescope = "a36a813d5d031e6f5d52b74986915e68130febd9",
  35. telescope_fzf_native = "8ec164b541327202e5e74f99bcc5fe5845720e18",
  36. toggleterm = "e97d0c1046512e975a9f3fa95afe98f312752b1c",
  37. which_key = "a3c19ec5754debb7bf38a8404e36a9287b282430",
  38. }
  39. return {
  40. -- Packer can manage itself as an optional plugin
  41. { "wbthomason/packer.nvim", commit = commit.packer },
  42. { "neovim/nvim-lspconfig", commit = commit.nvim_lspconfig },
  43. { "tamago324/nlsp-settings.nvim", commit = commit.nlsp_settings },
  44. {
  45. "jose-elias-alvarez/null-ls.nvim",
  46. commit = commit.null_ls,
  47. },
  48. { "antoinemadec/FixCursorHold.nvim", commit = commit.fixcursorhold }, -- Needed while issue https://github.com/neovim/neovim/issues/12587 is still open
  49. {
  50. "williamboman/nvim-lsp-installer",
  51. commit = commit.nvim_lsp_installer,
  52. },
  53. {
  54. "lunarvim/onedarker.nvim",
  55. config = function()
  56. require("onedarker").setup()
  57. end,
  58. disable = lvim.colorscheme ~= "onedarker",
  59. },
  60. {
  61. "rcarriga/nvim-notify",
  62. commit = commit.nvim_notify,
  63. config = function()
  64. require("lvim.core.notify").setup()
  65. end,
  66. requires = { "nvim-telescope/telescope.nvim" },
  67. disable = not lvim.builtin.notify.active or not lvim.builtin.telescope.active,
  68. },
  69. { "Tastyep/structlog.nvim", commit = commit.structlog },
  70. { "nvim-lua/popup.nvim", commit = commit.popup },
  71. { "nvim-lua/plenary.nvim", commit = commit.plenary },
  72. -- Telescope
  73. {
  74. "nvim-telescope/telescope.nvim",
  75. commit = commit.telescope,
  76. config = function()
  77. require("lvim.core.telescope").setup()
  78. end,
  79. disable = not lvim.builtin.telescope.active,
  80. },
  81. {
  82. "nvim-telescope/telescope-fzf-native.nvim",
  83. requires = { "nvim-telescope/telescope.nvim" },
  84. commit = commit.telescope_fzf_native,
  85. run = "make",
  86. disable = not lvim.builtin.telescope.active,
  87. },
  88. -- Install nvim-cmp, and buffer source as a dependency
  89. {
  90. "hrsh7th/nvim-cmp",
  91. commit = commit.nvim_cmp,
  92. config = function()
  93. if lvim.builtin.cmp then
  94. require("lvim.core.cmp").setup()
  95. end
  96. end,
  97. requires = {
  98. "L3MON4D3/LuaSnip",
  99. "rafamadriz/friendly-snippets",
  100. },
  101. },
  102. {
  103. "rafamadriz/friendly-snippets",
  104. commit = commit.friendly_snippets,
  105. },
  106. {
  107. "L3MON4D3/LuaSnip",
  108. config = function()
  109. require("luasnip/loaders/from_vscode").lazy_load()
  110. end,
  111. commit = commit.luasnip,
  112. },
  113. {
  114. "hrsh7th/cmp-nvim-lsp",
  115. commit = commit.cmp_nvim_lsp,
  116. },
  117. {
  118. "saadparwaiz1/cmp_luasnip",
  119. commit = commit.cmp_luasnip,
  120. },
  121. {
  122. "hrsh7th/cmp-buffer",
  123. commit = commit.cmp_buffer,
  124. },
  125. {
  126. "hrsh7th/cmp-path",
  127. commit = commit.cmp_path,
  128. },
  129. {
  130. "folke/lua-dev.nvim",
  131. module = "lua-dev",
  132. commit = commit.lua_dev,
  133. },
  134. -- Autopairs
  135. {
  136. "windwp/nvim-autopairs",
  137. commit = commit.nvim_autopairs,
  138. -- event = "InsertEnter",
  139. config = function()
  140. require("lvim.core.autopairs").setup()
  141. end,
  142. disable = not lvim.builtin.autopairs.active,
  143. },
  144. -- Treesitter
  145. {
  146. "nvim-treesitter/nvim-treesitter",
  147. commit = commit.nvim_treesitter,
  148. branch = vim.fn.has "nvim-0.6" == 1 and "master" or "0.5-compat",
  149. -- run = ":TSUpdate",
  150. config = function()
  151. require("lvim.core.treesitter").setup()
  152. end,
  153. },
  154. {
  155. "JoosepAlviste/nvim-ts-context-commentstring",
  156. commit = commit.nvim_ts_context_commentstring,
  157. event = "BufReadPost",
  158. },
  159. -- NvimTree
  160. {
  161. "kyazdani42/nvim-tree.lua",
  162. -- event = "BufWinOpen",
  163. -- cmd = "NvimTreeToggle",
  164. commit = commit.nvim_tree,
  165. config = function()
  166. require("lvim.core.nvimtree").setup()
  167. end,
  168. disable = not lvim.builtin.nvimtree.active,
  169. },
  170. {
  171. "lewis6991/gitsigns.nvim",
  172. commit = commit.gitsigns,
  173. config = function()
  174. require("lvim.core.gitsigns").setup()
  175. end,
  176. event = "BufRead",
  177. disable = not lvim.builtin.gitsigns.active,
  178. },
  179. -- Whichkey
  180. {
  181. "folke/which-key.nvim",
  182. commit = commit.which_key,
  183. config = function()
  184. require("lvim.core.which-key").setup()
  185. end,
  186. event = "BufWinEnter",
  187. disable = not lvim.builtin.which_key.active,
  188. },
  189. -- Comments
  190. {
  191. "numToStr/Comment.nvim",
  192. commit = commit.comment,
  193. event = "BufRead",
  194. config = function()
  195. require("lvim.core.comment").setup()
  196. end,
  197. disable = not lvim.builtin.comment.active,
  198. },
  199. -- project.nvim
  200. {
  201. "ahmedkhalf/project.nvim",
  202. commit = commit.project,
  203. config = function()
  204. require("lvim.core.project").setup()
  205. end,
  206. disable = not lvim.builtin.project.active,
  207. },
  208. -- Icons
  209. { "kyazdani42/nvim-web-devicons", commit = commit.nvim_web_devicons },
  210. -- Status Line and Bufferline
  211. {
  212. -- "hoob3rt/lualine.nvim",
  213. "nvim-lualine/lualine.nvim",
  214. commit = commit.lualine,
  215. -- "Lunarvim/lualine.nvim",
  216. config = function()
  217. require("lvim.core.lualine").setup()
  218. end,
  219. disable = not lvim.builtin.lualine.active,
  220. },
  221. {
  222. "akinsho/bufferline.nvim",
  223. commit = commit.bufferline,
  224. config = function()
  225. require("lvim.core.bufferline").setup()
  226. end,
  227. event = "BufWinEnter",
  228. disable = not lvim.builtin.bufferline.active,
  229. },
  230. -- Debugging
  231. {
  232. "mfussenegger/nvim-dap",
  233. commit = commit.nvim_dap,
  234. -- event = "BufWinEnter",
  235. config = function()
  236. require("lvim.core.dap").setup()
  237. end,
  238. disable = not lvim.builtin.dap.active,
  239. },
  240. -- Debugger management
  241. {
  242. "Pocco81/DAPInstall.nvim",
  243. commit = commit.dapinstall,
  244. -- event = "BufWinEnter",
  245. -- event = "BufRead",
  246. disable = not lvim.builtin.dap.active,
  247. },
  248. -- Dashboard
  249. {
  250. "ChristianChiarulli/dashboard-nvim",
  251. event = "BufWinEnter",
  252. config = function()
  253. require("lvim.core.dashboard").setup()
  254. end,
  255. disable = not lvim.builtin.dashboard.active,
  256. },
  257. -- Terminal
  258. {
  259. "akinsho/toggleterm.nvim",
  260. commit = commit.toggleterm,
  261. event = "BufWinEnter",
  262. config = function()
  263. require("lvim.core.terminal").setup()
  264. end,
  265. disable = not lvim.builtin.terminal.active,
  266. },
  267. -- SchemaStore
  268. {
  269. "b0o/schemastore.nvim",
  270. commit = commit.schemastore,
  271. },
  272. }