packer_compiled.lua 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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. config = { "\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0" },
  68. loaded = true,
  69. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/Comment.nvim",
  70. url = "https://github.com/numToStr/Comment.nvim"
  71. },
  72. LuaSnip = {
  73. loaded = true,
  74. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/LuaSnip",
  75. url = "https://github.com/L3MON4D3/LuaSnip"
  76. },
  77. ["coc.nvim"] = {
  78. loaded = true,
  79. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/coc.nvim",
  80. url = "https://github.com/neoclide/coc.nvim"
  81. },
  82. ["dashboard-nvim"] = {
  83. loaded = true,
  84. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/dashboard-nvim",
  85. url = "https://github.com/glepnir/dashboard-nvim"
  86. },
  87. ["friendly-snippets"] = {
  88. loaded = true,
  89. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/friendly-snippets",
  90. url = "https://github.com/rafamadriz/friendly-snippets"
  91. },
  92. ["lualine.nvim"] = {
  93. loaded = true,
  94. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/lualine.nvim",
  95. url = "https://github.com/nvim-lualine/lualine.nvim"
  96. },
  97. ["null-ls.nvim"] = {
  98. loaded = true,
  99. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/null-ls.nvim",
  100. url = "https://github.com/jose-elias-alvarez/null-ls.nvim"
  101. },
  102. ["nvim-autopairs"] = {
  103. config = { "\27LJ\2\n@\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0" },
  104. loaded = true,
  105. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-autopairs",
  106. url = "https://github.com/windwp/nvim-autopairs"
  107. },
  108. ["nvim-lspconfig"] = {
  109. loaded = true,
  110. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
  111. url = "https://github.com/neovim/nvim-lspconfig"
  112. },
  113. ["nvim-tree.lua"] = {
  114. loaded = true,
  115. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
  116. url = "https://github.com/kyazdani42/nvim-tree.lua"
  117. },
  118. ["nvim-treesitter"] = {
  119. loaded = true,
  120. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
  121. url = "https://github.com/nvim-treesitter/nvim-treesitter"
  122. },
  123. ["nvim-ts-autotag"] = {
  124. loaded = true,
  125. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-ts-autotag",
  126. url = "https://github.com/windwp/nvim-ts-autotag"
  127. },
  128. ["nvim-web-devicons"] = {
  129. loaded = true,
  130. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
  131. url = "https://github.com/nvim-tree/nvim-web-devicons"
  132. },
  133. ["packer.nvim"] = {
  134. loaded = true,
  135. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/packer.nvim",
  136. url = "https://github.com/wbthomason/packer.nvim"
  137. },
  138. ["plenary.nvim"] = {
  139. loaded = true,
  140. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/plenary.nvim",
  141. url = "https://github.com/nvim-lua/plenary.nvim"
  142. },
  143. ["prettier.nvim"] = {
  144. loaded = true,
  145. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/prettier.nvim",
  146. url = "https://github.com/MunifTanjim/prettier.nvim"
  147. },
  148. ["project.nvim"] = {
  149. loaded = true,
  150. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/project.nvim",
  151. url = "https://github.com/ahmedkhalf/project.nvim"
  152. },
  153. ["telescope.nvim"] = {
  154. loaded = true,
  155. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/telescope.nvim",
  156. url = "https://github.com/nvim-telescope/telescope.nvim"
  157. },
  158. ["tokyonight.nvim"] = {
  159. loaded = true,
  160. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/tokyonight.nvim",
  161. url = "https://github.com/folke/tokyonight.nvim"
  162. },
  163. ["vim-doge"] = {
  164. loaded = true,
  165. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/vim-doge",
  166. url = "https://github.com/kkoomen/vim-doge"
  167. },
  168. ["vim-floaterm"] = {
  169. loaded = true,
  170. path = "/Users/sdaduanbilei/.local/share/nvim/site/pack/packer/start/vim-floaterm",
  171. url = "https://github.com/voldikss/vim-floaterm"
  172. }
  173. }
  174. time([[Defining packer_plugins]], false)
  175. -- Config for: nvim-autopairs
  176. time([[Config for nvim-autopairs]], true)
  177. try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
  178. time([[Config for nvim-autopairs]], false)
  179. -- Config for: Comment.nvim
  180. time([[Config for Comment.nvim]], true)
  181. try_loadstring("\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0", "config", "Comment.nvim")
  182. time([[Config for Comment.nvim]], false)
  183. _G._packer.inside_compile = false
  184. if _G._packer.needs_bufread == true then
  185. vim.cmd("doautocmd BufRead")
  186. end
  187. _G._packer.needs_bufread = false
  188. if should_profile then save_profiles() end
  189. end)
  190. if not no_errors then
  191. error_msg = error_msg:gsub('"', '\\"')
  192. vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
  193. end