plugins.lua 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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. lvim.builtin.lualine.options.theme = "onedarker"
  58. end,
  59. disable = lvim.colorscheme ~= "onedarker",
  60. },
  61. {
  62. "rcarriga/nvim-notify",
  63. commit = commit.nvim_notify,
  64. config = function()
  65. require("lvim.core.notify").setup()
  66. end,
  67. requires = { "nvim-telescope/telescope.nvim" },
  68. disable = not lvim.builtin.notify.active or not lvim.builtin.telescope.active,
  69. },
  70. { "Tastyep/structlog.nvim", commit = commit.structlog },
  71. { "nvim-lua/popup.nvim", commit = commit.popup },
  72. { "nvim-lua/plenary.nvim", commit = commit.plenary },
  73. -- Telescope
  74. {
  75. "nvim-telescope/telescope.nvim",
  76. commit = commit.telescope,
  77. config = function()
  78. require("lvim.core.telescope").setup()
  79. end,
  80. disable = not lvim.builtin.telescope.active,
  81. },
  82. {
  83. "nvim-telescope/telescope-fzf-native.nvim",
  84. requires = { "nvim-telescope/telescope.nvim" },
  85. commit = commit.telescope_fzf_native,
  86. run = "make",
  87. disable = not lvim.builtin.telescope.active,
  88. },
  89. -- Install nvim-cmp, and buffer source as a dependency
  90. {
  91. "hrsh7th/nvim-cmp",
  92. commit = commit.nvim_cmp,
  93. config = function()
  94. if lvim.builtin.cmp then
  95. require("lvim.core.cmp").setup()
  96. end
  97. end,
  98. requires = {
  99. "L3MON4D3/LuaSnip",
  100. "rafamadriz/friendly-snippets",
  101. },
  102. },
  103. {
  104. "rafamadriz/friendly-snippets",
  105. commit = commit.friendly_snippets,
  106. },
  107. {
  108. "L3MON4D3/LuaSnip",
  109. config = function()
  110. require("luasnip/loaders/from_vscode").lazy_load()
  111. end,
  112. commit = commit.luasnip,
  113. },
  114. {
  115. "hrsh7th/cmp-nvim-lsp",
  116. commit = commit.cmp_nvim_lsp,
  117. },
  118. {
  119. "saadparwaiz1/cmp_luasnip",
  120. commit = commit.cmp_luasnip,
  121. },
  122. {
  123. "hrsh7th/cmp-buffer",
  124. commit = commit.cmp_buffer,
  125. },
  126. {
  127. "hrsh7th/cmp-path",
  128. commit = commit.cmp_path,
  129. },
  130. {
  131. "folke/lua-dev.nvim",
  132. module = "lua-dev",
  133. commit = commit.lua_dev,
  134. },
  135. -- Autopairs
  136. {
  137. "windwp/nvim-autopairs",
  138. commit = commit.nvim_autopairs,
  139. -- event = "InsertEnter",
  140. config = function()
  141. require("lvim.core.autopairs").setup()
  142. end,
  143. disable = not lvim.builtin.autopairs.active,
  144. },
  145. -- Treesitter
  146. {
  147. "nvim-treesitter/nvim-treesitter",
  148. commit = commit.nvim_treesitter,
  149. branch = vim.fn.has "nvim-0.6" == 1 and "master" or "0.5-compat",
  150. -- run = ":TSUpdate",
  151. config = function()
  152. require("lvim.core.treesitter").setup()
  153. end,
  154. },
  155. {
  156. "JoosepAlviste/nvim-ts-context-commentstring",
  157. commit = commit.nvim_ts_context_commentstring,
  158. event = "BufReadPost",
  159. },
  160. -- NvimTree
  161. {
  162. "kyazdani42/nvim-tree.lua",
  163. -- event = "BufWinOpen",
  164. -- cmd = "NvimTreeToggle",
  165. commit = commit.nvim_tree,
  166. config = function()
  167. require("lvim.core.nvimtree").setup()
  168. end,
  169. disable = not lvim.builtin.nvimtree.active,
  170. },
  171. {
  172. "lewis6991/gitsigns.nvim",
  173. commit = commit.gitsigns,
  174. config = function()
  175. require("lvim.core.gitsigns").setup()
  176. end,
  177. event = "BufRead",
  178. disable = not lvim.builtin.gitsigns.active,
  179. },
  180. -- Whichkey
  181. {
  182. "folke/which-key.nvim",
  183. commit = commit.which_key,
  184. config = function()
  185. require("lvim.core.which-key").setup()
  186. end,
  187. event = "BufWinEnter",
  188. disable = not lvim.builtin.which_key.active,
  189. },
  190. -- Comments
  191. {
  192. "numToStr/Comment.nvim",
  193. commit = commit.comment,
  194. event = "BufRead",
  195. config = function()
  196. require("lvim.core.comment").setup()
  197. end,
  198. disable = not lvim.builtin.comment.active,
  199. },
  200. -- project.nvim
  201. {
  202. "ahmedkhalf/project.nvim",
  203. commit = commit.project,
  204. config = function()
  205. require("lvim.core.project").setup()
  206. end,
  207. disable = not lvim.builtin.project.active,
  208. },
  209. -- Icons
  210. { "kyazdani42/nvim-web-devicons", commit = commit.nvim_web_devicons },
  211. -- Status Line and Bufferline
  212. {
  213. -- "hoob3rt/lualine.nvim",
  214. "nvim-lualine/lualine.nvim",
  215. commit = commit.lualine,
  216. -- "Lunarvim/lualine.nvim",
  217. config = function()
  218. require("lvim.core.lualine").setup()
  219. end,
  220. disable = not lvim.builtin.lualine.active,
  221. },
  222. {
  223. "akinsho/bufferline.nvim",
  224. commit = commit.bufferline,
  225. config = function()
  226. require("lvim.core.bufferline").setup()
  227. end,
  228. event = "BufWinEnter",
  229. disable = not lvim.builtin.bufferline.active,
  230. },
  231. -- Debugging
  232. {
  233. "mfussenegger/nvim-dap",
  234. commit = commit.nvim_dap,
  235. -- event = "BufWinEnter",
  236. config = function()
  237. require("lvim.core.dap").setup()
  238. end,
  239. disable = not lvim.builtin.dap.active,
  240. },
  241. -- Debugger management
  242. {
  243. "Pocco81/DAPInstall.nvim",
  244. commit = commit.dapinstall,
  245. -- event = "BufWinEnter",
  246. -- event = "BufRead",
  247. disable = not lvim.builtin.dap.active,
  248. },
  249. -- Dashboard
  250. {
  251. "ChristianChiarulli/dashboard-nvim",
  252. event = "BufWinEnter",
  253. config = function()
  254. require("lvim.core.dashboard").setup()
  255. end,
  256. disable = not lvim.builtin.dashboard.active,
  257. },
  258. -- Terminal
  259. {
  260. "akinsho/toggleterm.nvim",
  261. commit = commit.toggleterm,
  262. event = "BufWinEnter",
  263. config = function()
  264. require("lvim.core.terminal").setup()
  265. end,
  266. disable = not lvim.builtin.terminal.active,
  267. },
  268. -- SchemaStore
  269. {
  270. "b0o/schemastore.nvim",
  271. commit = commit.schemastore,
  272. },
  273. }