You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

263 lines
9.8 KiB

  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. local time
  9. local profile_info
  10. local should_profile = false
  11. if should_profile then
  12. local hrtime = vim.loop.hrtime
  13. profile_info = {}
  14. time = function(chunk, start)
  15. if start then
  16. profile_info[chunk] = hrtime()
  17. else
  18. profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
  19. end
  20. end
  21. else
  22. time = function(chunk, start) end
  23. end
  24. local function save_profiles(threshold)
  25. local sorted_times = {}
  26. for chunk_name, time_taken in pairs(profile_info) do
  27. sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
  28. end
  29. table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
  30. local results = {}
  31. for i, elem in ipairs(sorted_times) do
  32. if not threshold or threshold and elem[2] > threshold then
  33. results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
  34. end
  35. end
  36. _G._packer = _G._packer or {}
  37. _G._packer.profile_output = results
  38. end
  39. time([[Luarocks path setup]], true)
  40. local package_path_str = "/home/tovi/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/tovi/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/tovi/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/tovi/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
  41. local install_cpath_pattern = "/home/tovi/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
  42. if not string.find(package.path, package_path_str, 1, true) then
  43. package.path = package.path .. ';' .. package_path_str
  44. end
  45. if not string.find(package.cpath, install_cpath_pattern, 1, true) then
  46. package.cpath = package.cpath .. ';' .. install_cpath_pattern
  47. end
  48. time([[Luarocks path setup]], false)
  49. time([[try_loadstring definition]], true)
  50. local function try_loadstring(s, component, name)
  51. local success, result = pcall(loadstring(s), name, _G.packer_plugins[name])
  52. if not success then
  53. vim.schedule(function()
  54. vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
  55. end)
  56. end
  57. return result
  58. end
  59. time([[try_loadstring definition]], false)
  60. time([[Defining packer_plugins]], true)
  61. _G.packer_plugins = {
  62. LuaSnip = {
  63. config = { "\27LJ\2\n<\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\19config.luasnip\frequire\0" },
  64. loaded = true,
  65. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/LuaSnip",
  66. url = "https://github.com/L3MON4D3/LuaSnip",
  67. wants = { "friendly-snippets" }
  68. },
  69. ["cmp-buffer"] = {
  70. after_files = { "/home/tovi/.local/share/nvim/site/pack/packer/opt/cmp-buffer/after/plugin/cmp_buffer.lua" },
  71. load_after = {
  72. ["nvim-cmp"] = true
  73. },
  74. loaded = false,
  75. needs_bufread = false,
  76. path = "/home/tovi/.local/share/nvim/site/pack/packer/opt/cmp-buffer",
  77. url = "https://github.com/hrsh7th/cmp-buffer"
  78. },
  79. ["cmp-calc"] = {
  80. after_files = { "/home/tovi/.local/share/nvim/site/pack/packer/opt/cmp-calc/after/plugin/cmp_calc.lua" },
  81. load_after = {
  82. ["nvim-cmp"] = true
  83. },
  84. loaded = false,
  85. needs_bufread = false,
  86. path = "/home/tovi/.local/share/nvim/site/pack/packer/opt/cmp-calc",
  87. url = "https://github.com/hrsh7th/cmp-calc"
  88. },
  89. ["cmp-nvim-lsp"] = {
  90. after_files = { "/home/tovi/.local/share/nvim/site/pack/packer/opt/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua" },
  91. load_after = {
  92. ["nvim-cmp"] = true
  93. },
  94. loaded = false,
  95. needs_bufread = false,
  96. path = "/home/tovi/.local/share/nvim/site/pack/packer/opt/cmp-nvim-lsp",
  97. url = "https://github.com/hrsh7th/cmp-nvim-lsp"
  98. },
  99. ["cmp-nvim-ultisnips"] = {
  100. after_files = { "/home/tovi/.local/share/nvim/site/pack/packer/opt/cmp-nvim-ultisnips/after/plugin/cmp_nvim_ultisnips.lua" },
  101. load_after = {
  102. ["nvim-cmp"] = true
  103. },
  104. loaded = false,
  105. needs_bufread = false,
  106. path = "/home/tovi/.local/share/nvim/site/pack/packer/opt/cmp-nvim-ultisnips",
  107. url = "https://github.com/quangnguyen30192/cmp-nvim-ultisnips"
  108. },
  109. ["cmp-path"] = {
  110. after_files = { "/home/tovi/.local/share/nvim/site/pack/packer/opt/cmp-path/after/plugin/cmp_path.lua" },
  111. load_after = {
  112. ["nvim-cmp"] = true
  113. },
  114. loaded = false,
  115. needs_bufread = false,
  116. path = "/home/tovi/.local/share/nvim/site/pack/packer/opt/cmp-path",
  117. url = "https://github.com/hrsh7th/cmp-path"
  118. },
  119. ["cmp-spell"] = {
  120. after_files = { "/home/tovi/.local/share/nvim/site/pack/packer/opt/cmp-spell/after/plugin/cmp-spell.lua" },
  121. load_after = {
  122. ["nvim-cmp"] = true
  123. },
  124. loaded = false,
  125. needs_bufread = false,
  126. path = "/home/tovi/.local/share/nvim/site/pack/packer/opt/cmp-spell",
  127. url = "https://github.com/f3fora/cmp-spell"
  128. },
  129. ["dart-vim-plugin"] = {
  130. loaded = true,
  131. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/dart-vim-plugin",
  132. url = "https://github.com/dart-lang/dart-vim-plugin"
  133. },
  134. ["friendly-snippets"] = {
  135. load_after = {
  136. ["nvim-cmp"] = true
  137. },
  138. loaded = false,
  139. needs_bufread = false,
  140. path = "/home/tovi/.local/share/nvim/site/pack/packer/opt/friendly-snippets",
  141. url = "https://github.com/rafamadriz/friendly-snippets"
  142. },
  143. ["git-blame.nvim"] = {
  144. loaded = true,
  145. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/git-blame.nvim",
  146. url = "https://github.com/f-person/git-blame.nvim"
  147. },
  148. ["go.nvim"] = {
  149. loaded = true,
  150. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/go.nvim",
  151. url = "https://github.com/ray-x/go.nvim"
  152. },
  153. gruvbox = {
  154. loaded = true,
  155. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/gruvbox",
  156. url = "https://github.com/gruvbox-community/gruvbox"
  157. },
  158. ["guihua.lua"] = {
  159. loaded = true,
  160. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/guihua.lua",
  161. url = "https://github.com/ray-x/guihua.lua"
  162. },
  163. ["lsp_signature.nvim"] = {
  164. loaded = true,
  165. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/lsp_signature.nvim",
  166. url = "https://github.com/ray-x/lsp_signature.nvim"
  167. },
  168. ["nvim-cmp"] = {
  169. after = { "cmp-nvim-ultisnips", "friendly-snippets", "cmp-spell", "cmp-buffer", "cmp-path", "cmp-calc", "cmp-nvim-lsp" },
  170. config = { "\27LJ\2\n8\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\15config.cmp\frequire\0" },
  171. loaded = false,
  172. needs_bufread = false,
  173. only_cond = false,
  174. path = "/home/tovi/.local/share/nvim/site/pack/packer/opt/nvim-cmp",
  175. url = "https://github.com/hrsh7th/nvim-cmp"
  176. },
  177. ["nvim-lsp-installer"] = {
  178. loaded = true,
  179. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/nvim-lsp-installer",
  180. url = "https://github.com/williamboman/nvim-lsp-installer"
  181. },
  182. ["nvim-lspconfig"] = {
  183. config = { "\27LJ\2\n8\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\15config.lsp\frequire\0" },
  184. loaded = false,
  185. needs_bufread = false,
  186. only_cond = false,
  187. path = "/home/tovi/.local/share/nvim/site/pack/packer/opt/nvim-lspconfig",
  188. url = "https://github.com/neovim/nvim-lspconfig",
  189. wants = { "cmp-nvim-lsp", "nvim-lsp-installer", "lsp_signature.nvim" }
  190. },
  191. ["nvim-treesitter"] = {
  192. loaded = true,
  193. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
  194. url = "https://github.com/nvim-treesitter/nvim-treesitter"
  195. },
  196. ["packer.nvim"] = {
  197. loaded = true,
  198. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/packer.nvim",
  199. url = "https://github.com/wbthomason/packer.nvim"
  200. },
  201. ["php-doc-modded"] = {
  202. loaded = true,
  203. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/php-doc-modded",
  204. url = "https://github.com/Rican7/php-doc-modded"
  205. },
  206. ["plenary.nvim"] = {
  207. loaded = true,
  208. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/plenary.nvim",
  209. url = "https://github.com/nvim-lua/plenary.nvim"
  210. },
  211. ["popup.nvim"] = {
  212. loaded = true,
  213. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/popup.nvim",
  214. url = "https://github.com/nvim-lua/popup.nvim"
  215. },
  216. ["telescope-fzy-native.nvim"] = {
  217. loaded = true,
  218. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/telescope-fzy-native.nvim",
  219. url = "https://github.com/nvim-telescope/telescope-fzy-native.nvim"
  220. },
  221. ["telescope.nvim"] = {
  222. loaded = true,
  223. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/telescope.nvim",
  224. url = "https://github.com/nvim-telescope/telescope.nvim"
  225. },
  226. ["tmux.nvim"] = {
  227. loaded = true,
  228. path = "/home/tovi/.local/share/nvim/site/pack/packer/start/tmux.nvim",
  229. url = "https://github.com/aserowy/tmux.nvim"
  230. }
  231. }
  232. time([[Defining packer_plugins]], false)
  233. -- Config for: LuaSnip
  234. time([[Config for LuaSnip]], true)
  235. try_loadstring("\27LJ\2\n<\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\19config.luasnip\frequire\0", "config", "LuaSnip")
  236. time([[Config for LuaSnip]], false)
  237. vim.cmd [[augroup packer_load_aucmds]]
  238. vim.cmd [[au!]]
  239. -- Event lazy-loads
  240. time([[Defining lazy-load event autocommands]], true)
  241. vim.cmd [[au BufReadPre * ++once lua require("packer.load")({'nvim-lspconfig'}, { event = "BufReadPre *" }, _G.packer_plugins)]]
  242. vim.cmd [[au InsertEnter * ++once lua require("packer.load")({'nvim-cmp'}, { event = "InsertEnter *" }, _G.packer_plugins)]]
  243. time([[Defining lazy-load event autocommands]], false)
  244. vim.cmd("augroup END")
  245. if should_profile then save_profiles() end
  246. end)
  247. if not no_errors then
  248. error_msg = error_msg:gsub('"', '\\"')
  249. vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
  250. end