packer_compiled.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. -- Automatically generated packer.nvim plugin loader code
  2. if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
  3. vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
  4. return
  5. end
  6. vim.api.nvim_command('packadd packer.nvim')
  7. local no_errors, error_msg = pcall(function()
  8. _G._packer = _G._packer or {}
  9. _G._packer.inside_compile = true
  10. local time
  11. local profile_info
  12. local should_profile = false
  13. if should_profile then
  14. local hrtime = vim.loop.hrtime
  15. profile_info = {}
  16. time = function(chunk, start)
  17. if start then
  18. profile_info[chunk] = hrtime()
  19. else
  20. profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
  21. end
  22. end
  23. else
  24. time = function(chunk, start) end
  25. end
  26. local function save_profiles(threshold)
  27. local sorted_times = {}
  28. for chunk_name, time_taken in pairs(profile_info) do
  29. sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
  30. end
  31. table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
  32. local results = {}
  33. for i, elem in ipairs(sorted_times) do
  34. if not threshold or threshold and elem[2] > threshold then
  35. results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
  36. end
  37. end
  38. if threshold then
  39. table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)')
  40. end
  41. _G._packer.profile_output = results
  42. end
  43. time([[Luarocks path setup]], true)
  44. local package_path_str = "/Users/sdaduanbilei/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/Users/sdaduanbilei/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/Users/sdaduanbilei/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/Users/sdaduanbilei/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
  45. local install_cpath_pattern = "/Users/sdaduanbilei/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
  46. if not string.find(package.path, package_path_str, 1, true) then
  47. package.path = package.path .. ';' .. package_path_str
  48. end
  49. if not string.find(package.cpath, install_cpath_pattern, 1, true) then
  50. package.cpath = package.cpath .. ';' .. install_cpath_pattern
  51. end
  52. time([[Luarocks path setup]], false)
  53. time([[try_loadstring definition]], true)
  54. local function try_loadstring(s, component, name)
  55. local success, result = pcall(loadstring(s), name, _G.packer_plugins[name])
  56. if not success then
  57. vim.schedule(function()
  58. vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
  59. end)
  60. end
  61. return result
  62. end
  63. time([[try_loadstring definition]], false)
  64. time([[Defining packer_plugins]], true)
  65. _G.packer_plugins = {
  66. ["Comment.nvim"] = {
  67. loaded = true,
  68. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/Comment.nvim",
  69. url = "https://github.com/numToStr/Comment.nvim"
  70. },
  71. ["bufferline.nvim"] = {
  72. loaded = true,
  73. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/bufferline.nvim",
  74. url = "https://github.com/akinsho/bufferline.nvim"
  75. },
  76. ["cmp-buffer"] = {
  77. loaded = true,
  78. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/cmp-buffer",
  79. url = "https://github.com/hrsh7th/cmp-buffer"
  80. },
  81. ["cmp-cmdline"] = {
  82. loaded = true,
  83. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/cmp-cmdline",
  84. url = "https://github.com/hrsh7th/cmp-cmdline"
  85. },
  86. ["cmp-nvim-lsp"] = {
  87. loaded = true,
  88. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
  89. url = "https://github.com/hrsh7th/cmp-nvim-lsp"
  90. },
  91. ["cmp-nvim-lsp-signature-help"] = {
  92. loaded = true,
  93. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-signature-help",
  94. url = "https://github.com/hrsh7th/cmp-nvim-lsp-signature-help"
  95. },
  96. ["cmp-path"] = {
  97. loaded = true,
  98. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/cmp-path",
  99. url = "https://github.com/hrsh7th/cmp-path"
  100. },
  101. ["cmp-vsnip"] = {
  102. loaded = true,
  103. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/cmp-vsnip",
  104. url = "https://github.com/hrsh7th/cmp-vsnip"
  105. },
  106. ["fidget.nvim"] = {
  107. loaded = true,
  108. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/fidget.nvim",
  109. url = "https://github.com/j-hui/fidget.nvim"
  110. },
  111. ["formatter.nvim"] = {
  112. loaded = true,
  113. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/formatter.nvim",
  114. url = "https://github.com/mhartington/formatter.nvim"
  115. },
  116. ["friendly-snippets"] = {
  117. loaded = true,
  118. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/friendly-snippets",
  119. url = "https://github.com/rafamadriz/friendly-snippets"
  120. },
  121. ["gitsigns.nvim"] = {
  122. loaded = true,
  123. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/gitsigns.nvim",
  124. url = "https://github.com/lewis6991/gitsigns.nvim"
  125. },
  126. ["gruvbox.nvim"] = {
  127. loaded = true,
  128. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/gruvbox.nvim",
  129. url = "https://github.com/ellisonleao/gruvbox.nvim"
  130. },
  131. ["lspkind-nvim"] = {
  132. loaded = true,
  133. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/lspkind-nvim",
  134. url = "https://github.com/onsails/lspkind-nvim"
  135. },
  136. ["lspsaga.nvim"] = {
  137. loaded = true,
  138. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/lspsaga.nvim",
  139. url = "https://github.com/tami5/lspsaga.nvim"
  140. },
  141. ["lua-dev.nvim"] = {
  142. loaded = true,
  143. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/lua-dev.nvim",
  144. url = "https://github.com/folke/lua-dev.nvim"
  145. },
  146. ["lualine.nvim"] = {
  147. loaded = true,
  148. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/lualine.nvim",
  149. url = "https://github.com/nvim-lualine/lualine.nvim"
  150. },
  151. ["lush.nvim"] = {
  152. loaded = true,
  153. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/lush.nvim",
  154. url = "https://github.com/rktjmp/lush.nvim"
  155. },
  156. ["nightfox.nvim"] = {
  157. loaded = true,
  158. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nightfox.nvim",
  159. url = "https://github.com/EdenEast/nightfox.nvim"
  160. },
  161. ["nord.nvim"] = {
  162. loaded = true,
  163. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nord.nvim",
  164. url = "https://github.com/shaunsingh/nord.nvim"
  165. },
  166. ["null-ls.nvim"] = {
  167. loaded = true,
  168. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/null-ls.nvim",
  169. url = "https://github.com/jose-elias-alvarez/null-ls.nvim"
  170. },
  171. ["nvim-autopairs"] = {
  172. loaded = true,
  173. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-autopairs",
  174. url = "https://github.com/windwp/nvim-autopairs"
  175. },
  176. ["nvim-cmp"] = {
  177. loaded = true,
  178. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-cmp",
  179. url = "https://github.com/hrsh7th/nvim-cmp"
  180. },
  181. ["nvim-dap"] = {
  182. loaded = true,
  183. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-dap",
  184. url = "https://github.com/mfussenegger/nvim-dap"
  185. },
  186. ["nvim-dap-ui"] = {
  187. loaded = true,
  188. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-dap-ui",
  189. url = "https://github.com/rcarriga/nvim-dap-ui"
  190. },
  191. ["nvim-dap-virtual-text"] = {
  192. loaded = true,
  193. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-dap-virtual-text",
  194. url = "https://github.com/theHamsta/nvim-dap-virtual-text"
  195. },
  196. ["nvim-lsp-installer"] = {
  197. loaded = true,
  198. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-lsp-installer",
  199. url = "https://github.com/williamboman/nvim-lsp-installer"
  200. },
  201. ["nvim-lsp-ts-utils"] = {
  202. loaded = true,
  203. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-lsp-ts-utils",
  204. url = "https://github.com/jose-elias-alvarez/nvim-lsp-ts-utils"
  205. },
  206. ["nvim-lspconfig"] = {
  207. loaded = true,
  208. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
  209. url = "https://github.com/neovim/nvim-lspconfig"
  210. },
  211. ["nvim-tree.lua"] = {
  212. loaded = true,
  213. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
  214. url = "https://github.com/kyazdani42/nvim-tree.lua"
  215. },
  216. ["nvim-web-devicons"] = {
  217. loaded = true,
  218. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
  219. url = "https://github.com/kyazdani42/nvim-web-devicons"
  220. },
  221. ["oceanic-next"] = {
  222. loaded = true,
  223. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/oceanic-next",
  224. url = "https://github.com/mhartington/oceanic-next"
  225. },
  226. ["onedark.nvim"] = {
  227. loaded = true,
  228. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/onedark.nvim",
  229. url = "https://github.com/ful1e5/onedark.nvim"
  230. },
  231. ["packer.nvim"] = {
  232. loaded = true,
  233. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/packer.nvim",
  234. url = "https://github.com/wbthomason/packer.nvim"
  235. },
  236. ["plenary.nvim"] = {
  237. loaded = true,
  238. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/plenary.nvim",
  239. url = "https://github.com/nvim-lua/plenary.nvim"
  240. },
  241. ["rust-tools.nvim"] = {
  242. loaded = true,
  243. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/rust-tools.nvim",
  244. url = "https://github.com/simrat39/rust-tools.nvim"
  245. },
  246. ["schemastore.nvim"] = {
  247. loaded = true,
  248. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/schemastore.nvim",
  249. url = "https://github.com/b0o/schemastore.nvim"
  250. },
  251. ["surround.nvim"] = {
  252. loaded = true,
  253. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/surround.nvim",
  254. url = "https://github.com/ur4ltz/surround.nvim"
  255. },
  256. ["toggleterm.nvim"] = {
  257. loaded = true,
  258. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/toggleterm.nvim",
  259. url = "https://github.com/akinsho/toggleterm.nvim"
  260. },
  261. ["tokyonight.nvim"] = {
  262. loaded = true,
  263. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/tokyonight.nvim",
  264. url = "https://github.com/folke/tokyonight.nvim"
  265. },
  266. ["vim-bbye"] = {
  267. loaded = true,
  268. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/vim-bbye",
  269. url = "https://github.com/moll/vim-bbye"
  270. },
  271. ["vim-vsnip"] = {
  272. loaded = true,
  273. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/vim-vsnip",
  274. url = "https://github.com/hrsh7th/vim-vsnip"
  275. },
  276. vimspector = {
  277. loaded = true,
  278. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/vimspector",
  279. url = "https://github.com/puremourning/vimspector"
  280. }
  281. }
  282. time([[Defining packer_plugins]], false)
  283. _G._packer.inside_compile = false
  284. if _G._packer.needs_bufread == true then
  285. vim.cmd("doautocmd BufRead")
  286. end
  287. _G._packer.needs_bufread = false
  288. if should_profile then save_profiles() end
  289. end)
  290. if not no_errors then
  291. error_msg = error_msg:gsub('"', '\\"')
  292. vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
  293. end