packer_compiled.lua 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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. ["inline-python"] = {
  102. loaded = true,
  103. path = "/home/msc/.local/share/nvim/site/pack/packer/start/inline-python",
  104. url = "https://github.com/HansMartin/inline-python"
  105. },
  106. ["lsp-zero.nvim"] = {
  107. loaded = true,
  108. path = "/home/msc/.local/share/nvim/site/pack/packer/start/lsp-zero.nvim",
  109. url = "https://github.com/VonHeikemen/lsp-zero.nvim"
  110. },
  111. ["mason-lspconfig.nvim"] = {
  112. loaded = true,
  113. path = "/home/msc/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim",
  114. url = "https://github.com/williamboman/mason-lspconfig.nvim"
  115. },
  116. ["mason.nvim"] = {
  117. loaded = true,
  118. path = "/home/msc/.local/share/nvim/site/pack/packer/start/mason.nvim",
  119. url = "https://github.com/williamboman/mason.nvim"
  120. },
  121. ["nim.nvim"] = {
  122. loaded = true,
  123. path = "/home/msc/.local/share/nvim/site/pack/packer/start/nim.nvim",
  124. url = "https://github.com/alaviss/nim.nvim"
  125. },
  126. ["nvim-cmp"] = {
  127. loaded = true,
  128. path = "/home/msc/.local/share/nvim/site/pack/packer/start/nvim-cmp",
  129. url = "https://github.com/hrsh7th/nvim-cmp"
  130. },
  131. ["nvim-lspconfig"] = {
  132. loaded = true,
  133. path = "/home/msc/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
  134. url = "https://github.com/neovim/nvim-lspconfig"
  135. },
  136. ["nvim-treesitter"] = {
  137. loaded = true,
  138. path = "/home/msc/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
  139. url = "https://github.com/nvim-treesitter/nvim-treesitter"
  140. },
  141. ["packer.nvim"] = {
  142. loaded = true,
  143. path = "/home/msc/.local/share/nvim/site/pack/packer/start/packer.nvim",
  144. url = "https://github.com/wbthomason/packer.nvim"
  145. },
  146. ["plenary.nvim"] = {
  147. loaded = true,
  148. path = "/home/msc/.local/share/nvim/site/pack/packer/start/plenary.nvim",
  149. url = "https://github.com/nvim-lua/plenary.nvim"
  150. },
  151. ["rose-pine"] = {
  152. 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" },
  153. loaded = true,
  154. path = "/home/msc/.local/share/nvim/site/pack/packer/start/rose-pine",
  155. url = "https://github.com/rose-pine/neovim"
  156. },
  157. ["telescope.nvim"] = {
  158. loaded = true,
  159. path = "/home/msc/.local/share/nvim/site/pack/packer/start/telescope.nvim",
  160. url = "https://github.com/nvim-telescope/telescope.nvim"
  161. },
  162. undotree = {
  163. loaded = true,
  164. path = "/home/msc/.local/share/nvim/site/pack/packer/start/undotree",
  165. url = "https://github.com/mbbill/undotree"
  166. },
  167. ["vim-fugitive"] = {
  168. loaded = true,
  169. path = "/home/msc/.local/share/nvim/site/pack/packer/start/vim-fugitive",
  170. url = "https://github.com/tpope/vim-fugitive"
  171. }
  172. }
  173. time([[Defining packer_plugins]], false)
  174. -- Config for: rose-pine
  175. time([[Config for rose-pine]], true)
  176. 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")
  177. time([[Config for rose-pine]], false)
  178. _G._packer.inside_compile = false
  179. if _G._packer.needs_bufread == true then
  180. vim.cmd("doautocmd BufRead")
  181. end
  182. _G._packer.needs_bufread = false
  183. if should_profile then save_profiles() end
  184. end)
  185. if not no_errors then
  186. error_msg = error_msg:gsub('"', '\\"')
  187. vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
  188. end