PageRenderTime 59ms CodeModel.GetById 31ms RepoModel.GetById 0ms app.codeStats 0ms

/vim-new/nvim/plugin/packer_compiled.lua

https://github.com/Ricordel/config_files
Lua | 196 lines | 182 code | 13 blank | 1 comment | 11 complexity | 27c8f8e46aeccdd47a8b254474bbf7a1 MD5 | raw file
  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/yoann/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/yoann/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/yoann/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/yoann/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
  41. local install_cpath_pattern = "/home/yoann/.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. ["cmp-buffer"] = {
  63. loaded = true,
  64. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/cmp-buffer",
  65. url = "https://github.com/hrsh7th/cmp-buffer"
  66. },
  67. ["cmp-nvim-lsp"] = {
  68. loaded = true,
  69. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
  70. url = "https://github.com/hrsh7th/cmp-nvim-lsp"
  71. },
  72. ["cmp-path"] = {
  73. loaded = true,
  74. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/cmp-path",
  75. url = "https://github.com/hrsh7th/cmp-path"
  76. },
  77. ["gitsigns.nvim"] = {
  78. loaded = true,
  79. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/gitsigns.nvim",
  80. url = "https://github.com/lewis6991/gitsigns.nvim"
  81. },
  82. indentLine = {
  83. loaded = true,
  84. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/indentLine",
  85. url = "https://github.com/Yggdroot/indentLine"
  86. },
  87. ["lsp_signature.nvim"] = {
  88. loaded = true,
  89. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/lsp_signature.nvim",
  90. url = "https://github.com/ray-x/lsp_signature.nvim"
  91. },
  92. nerdcommenter = {
  93. loaded = true,
  94. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/nerdcommenter",
  95. url = "https://github.com/scrooloose/nerdcommenter"
  96. },
  97. nerdtree = {
  98. loaded = true,
  99. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/nerdtree",
  100. url = "https://github.com/scrooloose/nerdtree"
  101. },
  102. ["nvim-cmp"] = {
  103. loaded = true,
  104. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/nvim-cmp",
  105. url = "https://github.com/hrsh7th/nvim-cmp"
  106. },
  107. ["nvim-lspconfig"] = {
  108. loaded = true,
  109. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
  110. url = "https://github.com/neovim/nvim-lspconfig"
  111. },
  112. ["packer.nvim"] = {
  113. loaded = true,
  114. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/packer.nvim",
  115. url = "https://github.com/wbthomason/packer.nvim"
  116. },
  117. ["plenary.nvim"] = {
  118. loaded = true,
  119. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/plenary.nvim",
  120. url = "https://github.com/nvim-lua/plenary.nvim"
  121. },
  122. ripgrep = {
  123. loaded = true,
  124. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/ripgrep",
  125. url = "https://github.com/BurntSushi/ripgrep"
  126. },
  127. ["rust-tools.nvim"] = {
  128. loaded = true,
  129. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/rust-tools.nvim",
  130. url = "https://github.com/simrat39/rust-tools.nvim"
  131. },
  132. ["telescope.nvim"] = {
  133. loaded = true,
  134. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/telescope.nvim",
  135. url = "https://github.com/nvim-telescope/telescope.nvim"
  136. },
  137. ["vim-airline"] = {
  138. loaded = true,
  139. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/vim-airline",
  140. url = "https://github.com/vim-airline/vim-airline"
  141. },
  142. ["vim-fugitive"] = {
  143. loaded = true,
  144. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/vim-fugitive",
  145. url = "https://github.com/tpope/vim-fugitive"
  146. },
  147. ["vim-localvimrc"] = {
  148. loaded = true,
  149. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/vim-localvimrc",
  150. url = "https://github.com/embear/vim-localvimrc"
  151. },
  152. ["vim-markdown"] = {
  153. loaded = true,
  154. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/vim-markdown",
  155. url = "https://github.com/tpope/vim-markdown"
  156. },
  157. ["vim-systemd-syntax"] = {
  158. loaded = true,
  159. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/vim-systemd-syntax",
  160. url = "https://github.com/wgwoods/vim-systemd-syntax"
  161. },
  162. ["vim-toml"] = {
  163. loaded = true,
  164. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/vim-toml",
  165. url = "https://github.com/cespare/vim-toml"
  166. },
  167. ["vim-trailing-whitespace"] = {
  168. loaded = true,
  169. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/vim-trailing-whitespace",
  170. url = "https://github.com/bronson/vim-trailing-whitespace"
  171. },
  172. ["xterm-color-table.vim"] = {
  173. loaded = true,
  174. path = "/home/yoann/.local/share/nvim/site/pack/packer/start/xterm-color-table.vim",
  175. url = "https://github.com/guns/xterm-color-table.vim"
  176. }
  177. }
  178. time([[Defining packer_plugins]], false)
  179. if should_profile then save_profiles() end
  180. end)
  181. if not no_errors then
  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