packer_compiled.lua 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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 = "/home/msc/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/msc/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/msc/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/msc/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
  45. local install_cpath_pattern = "/home/msc/.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. LuaSnip = {
  67. loaded = true,
  68. path = "/home/msc/.local/share/nvim/site/pack/packer/start/LuaSnip",
  69. url = "https://github.com/L3MON4D3/LuaSnip"
  70. },
  71. ["cmp-buffer"] = {
  72. loaded = true,
  73. path = "/home/msc/.local/share/nvim/site/pack/packer/start/cmp-buffer",
  74. url = "https://github.com/hrsh7th/cmp-buffer"
  75. },
  76. ["cmp-nvim-lsp"] = {
  77. loaded = true,
  78. path = "/home/msc/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
  79. url = "https://github.com/hrsh7th/cmp-nvim-lsp"
  80. },
  81. ["cmp-nvim-lua"] = {
  82. loaded = true,
  83. path = "/home/msc/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua",
  84. url = "https://github.com/hrsh7th/cmp-nvim-lua"
  85. },
  86. ["cmp-path"] = {
  87. loaded = true,
  88. path = "/home/msc/.local/share/nvim/site/pack/packer/start/cmp-path",
  89. url = "https://github.com/hrsh7th/cmp-path"
  90. },
  91. cmp_luasnip = {
  92. loaded = true,
  93. path = "/home/msc/.local/share/nvim/site/pack/packer/start/cmp_luasnip",
  94. url = "https://github.com/saadparwaiz1/cmp_luasnip"
  95. },
  96. ["friendly-snippets"] = {
  97. loaded = true,
  98. path = "/home/msc/.local/share/nvim/site/pack/packer/start/friendly-snippets",
  99. url = "https://github.com/rafamadriz/friendly-snippets"
  100. },
  101. ["lsp-zero.nvim"] = {
  102. loaded = true,
  103. path = "/home/msc/.local/share/nvim/site/pack/packer/start/lsp-zero.nvim",
  104. url = "https://github.com/VonHeikemen/lsp-zero.nvim"
  105. },
  106. ["mason-lspconfig.nvim"] = {
  107. loaded = true,
  108. path = "/home/msc/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim",
  109. url = "https://github.com/williamboman/mason-lspconfig.nvim"
  110. },
  111. ["mason.nvim"] = {
  112. loaded = true,
  113. path = "/home/msc/.local/share/nvim/site/pack/packer/start/mason.nvim",
  114. url = "https://github.com/williamboman/mason.nvim"
  115. },
  116. ["nim.nvim"] = {
  117. loaded = true,
  118. path = "/home/msc/.local/share/nvim/site/pack/packer/start/nim.nvim",
  119. url = "https://github.com/alaviss/nim.nvim"
  120. },
  121. ["nvim-cmp"] = {
  122. loaded = true,
  123. path = "/home/msc/.local/share/nvim/site/pack/packer/start/nvim-cmp",
  124. url = "https://github.com/hrsh7th/nvim-cmp"
  125. },
  126. ["nvim-lspconfig"] = {
  127. loaded = true,
  128. path = "/home/msc/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
  129. url = "https://github.com/neovim/nvim-lspconfig"
  130. },
  131. ["nvim-treesitter"] = {
  132. loaded = true,
  133. path = "/home/msc/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
  134. url = "https://github.com/nvim-treesitter/nvim-treesitter"
  135. },
  136. ["packer.nvim"] = {
  137. loaded = true,
  138. path = "/home/msc/.local/share/nvim/site/pack/packer/start/packer.nvim",
  139. url = "https://github.com/wbthomason/packer.nvim"
  140. },
  141. ["plenary.nvim"] = {
  142. loaded = true,
  143. path = "/home/msc/.local/share/nvim/site/pack/packer/start/plenary.nvim",
  144. url = "https://github.com/nvim-lua/plenary.nvim"
  145. },
  146. ["rose-pine"] = {
  147. config = { "\27LJ\2\n9\0\0\3\0\3\0\0056\0\0\0009\0\1\0'\2\2\0B\0\2\1K\0\1\0\26colorscheme rose-pine\bcmd\bvim\0" },
  148. loaded = true,
  149. path = "/home/msc/.local/share/nvim/site/pack/packer/start/rose-pine",
  150. url = "https://github.com/rose-pine/neovim"
  151. },
  152. ["telescope.nvim"] = {
  153. loaded = true,
  154. path = "/home/msc/.local/share/nvim/site/pack/packer/start/telescope.nvim",
  155. url = "https://github.com/nvim-telescope/telescope.nvim"
  156. },
  157. undotree = {
  158. loaded = true,
  159. path = "/home/msc/.local/share/nvim/site/pack/packer/start/undotree",
  160. url = "https://github.com/mbbill/undotree"
  161. },
  162. ["vim-fugitive"] = {
  163. loaded = true,
  164. path = "/home/msc/.local/share/nvim/site/pack/packer/start/vim-fugitive",
  165. url = "https://github.com/tpope/vim-fugitive"
  166. }
  167. }
  168. time([[Defining packer_plugins]], false)
  169. -- Config for: rose-pine
  170. time([[Config for rose-pine]], true)
  171. try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\0056\0\0\0009\0\1\0'\2\2\0B\0\2\1K\0\1\0\26colorscheme rose-pine\bcmd\bvim\0", "config", "rose-pine")
  172. time([[Config for rose-pine]], false)
  173. _G._packer.inside_compile = false
  174. if _G._packer.needs_bufread == true then
  175. vim.cmd("doautocmd BufRead")
  176. end
  177. _G._packer.needs_bufread = false
  178. if should_profile then save_profiles() end
  179. end)
  180. if not no_errors then
  181. error_msg = error_msg:gsub('"', '\\"')
  182. vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
  183. end