plugins.lua 8.0 KB

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