|
|
|
|
-- Automatically generated packer.nvim plugin loader code
|
|
|
|
|
|
|
|
|
|
if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
|
|
|
|
|
vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
vim.api.nvim_command('packadd packer.nvim')
|
|
|
|
|
|
|
|
|
|
local no_errors, error_msg = pcall(function()
|
|
|
|
|
|
|
|
|
|
local time
|
|
|
|
|
local profile_info
|
|
|
|
|
local should_profile = false
|
|
|
|
|
if should_profile then
|
|
|
|
|
local hrtime = vim.loop.hrtime
|
|
|
|
|
profile_info = {}
|
|
|
|
|
time = function(chunk, start)
|
|
|
|
|
if start then
|
|
|
|
|
profile_info[chunk] = hrtime()
|
|
|
|
|
else
|
|
|
|
|
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
time = function(chunk, start) end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
local function save_profiles(threshold)
|
|
|
|
|
local sorted_times = {}
|
|
|
|
|
for chunk_name, time_taken in pairs(profile_info) do
|
|
|
|
|
sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
|
|
|
|
|
end
|
|
|
|
|
table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
|
|
|
|
|
local results = {}
|
|
|
|
|
for i, elem in ipairs(sorted_times) do
|
|
|
|
|
if not threshold or threshold and elem[2] > threshold then
|
|
|
|
|
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
_G._packer = _G._packer or {}
|
|
|
|
|
_G._packer.profile_output = results
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
time([[Luarocks path setup]], true)
|
|
|
|
|
local package_path_str = "/var/home/diax/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/var/home/diax/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/var/home/diax/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/var/home/diax/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
|
|
|
|
|
local install_cpath_pattern = "/var/home/diax/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
|
|
|
|
|
if not string.find(package.path, package_path_str, 1, true) then
|
|
|
|
|
package.path = package.path .. ';' .. package_path_str
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if not string.find(package.cpath, install_cpath_pattern, 1, true) then
|
|
|
|
|
package.cpath = package.cpath .. ';' .. install_cpath_pattern
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
time([[Luarocks path setup]], false)
|
|
|
|
|
time([[try_loadstring definition]], true)
|
|
|
|
|
local function try_loadstring(s, component, name)
|
|
|
|
|
local success, result = pcall(loadstring(s), name, _G.packer_plugins[name])
|
|
|
|
|
if not success then
|
|
|
|
|
vim.schedule(function()
|
|
|
|
|
vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
|
|
|
|
|
end)
|
|
|
|
|
end
|
|
|
|
|
return result
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
time([[try_loadstring definition]], false)
|
|
|
|
|
time([[Defining packer_plugins]], true)
|
|
|
|
|
_G.packer_plugins = {
|
|
|
|
|
["lualine.nvim"] = {
|
|
|
|
|
config = { "\27LJ\2\n<EFBFBD>\6\0\0\a\0'\0C6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\t\0005\3\3\0005\4\4\0=\4\5\0035\4\6\0=\4\a\0034\4\0\0=\4\b\3=\3\n\0025\3\f\0005\4\v\0=\4\r\0035\4\14\0=\4\15\0034\4\3\0005\5\16\0005\6\17\0=\6\18\0055\6\19\0=\6\20\5>\5\1\4=\4\21\0035\4\22\0=\4\23\0035\4\24\0=\4\25\0035\4\26\0=\4\27\0035\4\28\0=\4\29\3=\3\30\0025\3\31\0004\4\0\0=\4\r\0034\4\0\0=\4\15\0035\4 \0=\4\21\0035\4!\0=\4\25\0034\4\0\0=\4\27\0034\4\0\0=\4\29\3=\3\"\0025\3$\0005\4#\0=\4\r\0034\4\0\0=\4\15\0034\4\0\0=\4\21\0034\4\0\0=\4\25\0034\4\0\0=\4\27\0034\4\0\0=\4\29\3=\3%\0024\3\0\0=\3&\2B\0\2\1K\0\1\0\15extensions\ftabline\1\0\0\1\2\0\0\ttabs\22inactive_sections\1\2\0\0\rlocation\1\2\0\0\rfilename\1\0\0\rsections\14lualine_z\1\2\0\0\rlocation\14lualine_y\1\2\0\0\rprogress\14lualine_x\1\2\0\0\rfiletype\14lualine_w\1\2\0\0\rencoding\14lualine_c\fsources\1\2\0\0\20nvim_diagnostic\fsymbols\1\0\4\twarn\vWarns:\nerror\fErrors:\tinfo\nInfo:\thint\vHints:\1\2\0\0\16diagnostics\14lualine_b\1\3\0\0\rfilename\vbranch\14lualine_a\1\0\0\1\2\0\0\tmode\foptions\1\0\0\23disabled_filetypes\23section_separators\1\0\2\nright\5\tleft\5\25component_separators\1\0\2\nright\5\tleft\5\1\0\3\25always_divide_middle\2\ntheme\15ayu_mirage\18icons_enabled\2\nsetup\flualine\frequire\0" },
|
|
|
|
|
loaded = true,
|
|
|
|
|
path = "/var/home/diax/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
|
|
|
|
url = "https://github.com/nvim-lualine/lualine.nvim"
|
|
|
|
|
},
|
|
|
|
|
["nvim-autopairs"] = {
|
|
|
|
|
loaded = true,
|
|
|
|
|
path = "/var/home/diax/.local/share/nvim/site/pack/packer/start/nvim-autopairs",
|
|
|
|
|
url = "https://github.com/windwp/nvim-autopairs"
|
|
|
|
|
},
|
|
|
|
|
["nvim-lspconfig"] = {
|
|
|
|
|
config = { "\27LJ\2\n<EFBFBD>\v\0\2\n\0&\0<EFBFBD>\0015\2\0\0006\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\5\0'\b\6\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\a\0'\b\b\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\t\0'\b\n\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\v\0'\b\f\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\r\0'\b\14\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\15\0'\b\16\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\17\0'\b\18\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\19\0'\b\20\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\21\0'\b\22\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\23\0'\b\24\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\25\0'\b\26\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\27\0'\b\28\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\29\0'\b\30\0\18\t\2\0B\3\6\0019\3\31\0009\3 \3\15\0\3\0X\4\20<EFBFBD>6\3\1\0009\3\2\0039\3!\3'\5\"\0B\3\2\0016\3\1\0009\3\2\0039\3!\3'\5#\0B\3\2\0016\3\1\0009\3\2\0039\3!\3'\5$\0B\3\2\0016\3\1\0009\3\2\0039\3!\3'\5%\0B\3\2\1K\0\1\0\16augroup ENDGautocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_seq_sync()\24autocmd! * <buffer>\19augroup Format\17nvim_command\24document_formatting\26resolved_capabilities*<cmd>lua vim.lsp.buf.formatting()<CR>\r<space>f*<cmd>lua vim.lsp.buf.references()<CR>\agr+<cmd>lua vim.lsp.buf.code_action()<CR>\14<space>ca&<cmd>lua vim.lsp.buf.rename()<CR>\14<space>rn/<cmd>lua vim.lsp.buf.type_definition()<CR>\r<space>DJ<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>\14<space>wl7<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>\14<space>wr4<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>\14<space>wa.<cmd>lua vim.lsp.buf.signature_help()<CR>\n<C-k>.<cmd>lua vim.lsp.buf.implementation()<CR>\agi%<cmd>lua vim.lsp.buf.hover()<CR>\6K*<cmd>lua vim.lsp.buf.definition()<CR>\agd+<cmd>lua vim.lsp.buf.declaration()<CR>\agD\6n\24nvim_buf_set_keymap\bapi\bvim\1\0\2\fnoremap\2\vsilent\2<EFBFBD>\1\1\0\n\0\b\0\0173\0\0\0005\1\1\0006\2\2\0\18\4\1\0B\2\2\4H\5\b<EFBFBD>6\a\3\0'\t\4\0B\a\2\0028\a\6\a9\a\5\a5\t\6\0=\0\a\tB\a\2\1F\5\3\3R\5<EFBFBD>K\0\1\0\14on_attach\1\0\0\nsetup\14lspconfig\frequire\npairs\1\4\0\0\fpyright\18rust_analyzer\vclangd\0\0" },
|
|
|
|
|
loaded = true,
|
|
|
|
|
path = "/var/home/diax/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
|
|
|
|
url = "https://github.com/neovim/nvim-lspconfig"
|
|
|
|
|
},
|
|
|
|
|
["nvim-treesitter"] = {
|
|
|
|
|
config = { "\27LJ\2\n<EFBFBD>\1\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\1K\0\1\0\14highlight\1\0\1\venable\2\1\0\2\21ensure_installed\15maintained\17sync_install\1\nsetup\28nvim-treesitter.configs\frequire\0" },
|
|
|
|
|
loaded = true,
|
|
|
|
|
path = "/var/home/diax/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
|
|
|
|
|
url = "https://github.com/nvim-treesitter/nvim-treesitter"
|
|
|
|
|
},
|
|
|
|
|
["packer.vim"] = {
|
|
|
|
|
loaded = true,
|
|
|
|
|
path = "/var/home/diax/.local/share/nvim/site/pack/packer/start/packer.vim",
|
|
|
|
|
url = "https://github.com/wbthomason/packer.vim"
|
|
|
|
|
},
|
|
|
|
|
["plenary.nvim"] = {
|
|
|
|
|
loaded = true,
|
|
|
|
|
path = "/var/home/diax/.local/share/nvim/site/pack/packer/start/plenary.nvim",
|
|
|
|
|
url = "https://github.com/nvim-lua/plenary.nvim"
|
|
|
|
|
},
|
|
|
|
|
["telescope.nvim"] = {
|
|
|
|
|
config = { "\27LJ\2\n<EFBFBD>\1\0\0\6\0\n\0\0176\0\0\0009\0\1\0009\0\2\0'\2\3\0'\3\4\0'\4\5\0005\5\6\0B\0\5\0016\0\0\0009\0\1\0009\0\2\0'\2\3\0'\3\a\0'\4\b\0005\5\t\0B\0\5\1K\0\1\0\1\0\2\fnoremap\2\vsilent\2!<cmd>Telescope live_grep<CR>\14<leader>g\1\0\2\fnoremap\2\vsilent\2\"<cmd>Telescope find_files<CR>\20<leader><space>\6n\20nvim_set_keymap\bapi\bvim\0" },
|
|
|
|
|
loaded = true,
|
|
|
|
|
path = "/var/home/diax/.local/share/nvim/site/pack/packer/start/telescope.nvim",
|
|
|
|
|
url = "https://github.com/nvim-telescope/telescope.nvim"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
time([[Defining packer_plugins]], false)
|
|
|
|
|
-- Config for: telescope.nvim
|
|
|
|
|
time([[Config for telescope.nvim]], true)
|
|
|
|
|
try_loadstring("\27LJ\2\n<EFBFBD>\1\0\0\6\0\n\0\0176\0\0\0009\0\1\0009\0\2\0'\2\3\0'\3\4\0'\4\5\0005\5\6\0B\0\5\0016\0\0\0009\0\1\0009\0\2\0'\2\3\0'\3\a\0'\4\b\0005\5\t\0B\0\5\1K\0\1\0\1\0\2\fnoremap\2\vsilent\2!<cmd>Telescope live_grep<CR>\14<leader>g\1\0\2\fnoremap\2\vsilent\2\"<cmd>Telescope find_files<CR>\20<leader><space>\6n\20nvim_set_keymap\bapi\bvim\0", "config", "telescope.nvim")
|
|
|
|
|
time([[Config for telescope.nvim]], false)
|
|
|
|
|
-- Config for: nvim-lspconfig
|
|
|
|
|
time([[Config for nvim-lspconfig]], true)
|
|
|
|
|
try_loadstring("\27LJ\2\n<EFBFBD>\v\0\2\n\0&\0<EFBFBD>\0015\2\0\0006\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\5\0'\b\6\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\a\0'\b\b\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\t\0'\b\n\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\v\0'\b\f\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\r\0'\b\14\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\15\0'\b\16\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\17\0'\b\18\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\19\0'\b\20\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\21\0'\b\22\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\23\0'\b\24\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\25\0'\b\26\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\27\0'\b\28\0\18\t\2\0B\3\6\0016\3\1\0009\3\2\0039\3\3\3\18\5\1\0'\6\4\0'\a\29\0'\b\30\0\18\t\2\0B\3\6\0019\3\31\0009\3 \3\15\0\3\0X\4\20<EFBFBD>6\3\1\0009\3\2\0039\3!\3'\5\"\0B\3\2\0016\3\1\0009\3\2\0039\3!\3'\5#\0B\3\2\0016\3\1\0009\3\2\0039\3!\3'\5$\0B\3\2\0016\3\1\0009\3\2\0039\3!\3'\5%\0B\3\2\1K\0\1\0\16augroup ENDGautocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_seq_sync()\24autocmd! * <buffer>\19augroup Format\17nvim_command\24document_formatting\26resolved_capabilities*<cmd>lua vim.lsp.buf.formatting()<CR>\r<space>f*<cmd>lua vim.lsp.buf.references()<CR>\agr+<cmd>lua vim.lsp.buf.code_action()<CR>\14<space>ca&<cmd>lua vim.lsp.buf.rename()<CR>\14<space>rn/<cmd>lua vim.lsp.buf.type_definition()<CR>\r<space>DJ<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>\14<space>wl7<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>\14<space>wr4<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>\14<space>wa.<cmd>lua vim.lsp.buf.signature_help()<CR>\n<C-k>.<cmd>lua vim.lsp.buf.implementation()<CR>\agi%<cmd>lua vim.lsp.buf.hover()<CR>\6K*<cmd>lua vim.lsp.buf.definition()<CR>\agd+<cmd>lua vim.lsp.buf.declaration()<CR>\agD\6n\24nvim_buf_set_keymap\bapi\bvim\1\0\2\fnoremap\2\vsilent\2<EFBFBD>\1\1\0\n\0\b\0\0173\0\0\0005\1\1\0006\2\2\0\18\4\1\0B\2\2\4H\5\b<EFBFBD>6\a\3\0'\t\4\0B\a\2\0028\a\6\a9\a\5\a5\t\6\0=\0\a\tB\a\2\1F\5\3\3R\5<EFBFBD>K\0\1\0\14on_attach\1\0\0\nsetup\14lspconfig\frequire\npairs\1\4\0\0\fpyright\18rust_analyzer\vclangd\0\0", "config", "nvim-lspconfig")
|
|
|
|
|
time([[Config for nvim-lspconfig]], false)
|
|
|
|
|
-- Config for: lualine.nvim
|
|
|
|
|
time([[Config for lualine.nvim]], true)
|
|
|
|
|
try_loadstring("\27LJ\2\n<EFBFBD>\6\0\0\a\0'\0C6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\t\0005\3\3\0005\4\4\0=\4\5\0035\4\6\0=\4\a\0034\4\0\0=\4\b\3=\3\n\0025\3\f\0005\4\v\0=\4\r\0035\4\14\0=\4\15\0034\4\3\0005\5\16\0005\6\17\0=\6\18\0055\6\19\0=\6\20\5>\5\1\4=\4\21\0035\4\22\0=\4\23\0035\4\24\0=\4\25\0035\4\26\0=\4\27\0035\4\28\0=\4\29\3=\3\30\0025\3\31\0004\4\0\0=\4\r\0034\4\0\0=\4\15\0035\4 \0=\4\21\0035\4!\0=\4\25\0034\4\0\0=\4\27\0034\4\0\0=\4\29\3=\3\"\0025\3$\0005\4#\0=\4\r\0034\4\0\0=\4\15\0034\4\0\0=\4\21\0034\4\0\0=\4\25\0034\4\0\0=\4\27\0034\4\0\0=\4\29\3=\3%\0024\3\0\0=\3&\2B\0\2\1K\0\1\0\15extensions\ftabline\1\0\0\1\2\0\0\ttabs\22inactive_sections\1\2\0\0\rlocation\1\2\0\0\rfilename\1\0\0\rsections\14lualine_z\1\2\0\0\rlocation\14lualine_y\1\2\0\0\rprogress\14lualine_x\1\2\0\0\rfiletype\14lualine_w\1\2\0\0\rencoding\14lualine_c\fsources\1\2\0\0\20nvim_diagnostic\fsymbols\1\0\4\twarn\vWarns:\nerror\fErrors:\tinfo\nInfo:\thint\vHints:\1\2\0\0\16diagnostics\14lualine_b\1\3\0\0\rfilename\vbranch\14lualine_a\1\0\0\1\2\0\0\tmode\foptions\1\0\0\23disabled_filetypes\23section_separators\1\0\2\nright\5\tleft\5\25component_separators\1\0\2\nright\5\tleft\5\1\0\3\25always_divide_middle\2\ntheme\15ayu_mirage\18icons_enabled\2\nsetup\flualine\frequire\0", "config", "lualine.nvim")
|
|
|
|
|
time([[Config for lualine.nvim]], false)
|
|
|
|
|
-- Config for: nvim-treesitter
|
|
|
|
|
time([[Config for nvim-treesitter]], true)
|
|
|
|
|
try_loadstring("\27LJ\2\n<EFBFBD>\1\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\1K\0\1\0\14highlight\1\0\1\venable\2\1\0\2\21ensure_installed\15maintained\17sync_install\1\nsetup\28nvim-treesitter.configs\frequire\0", "config", "nvim-treesitter")
|
|
|
|
|
time([[Config for nvim-treesitter]], false)
|
|
|
|
|
if should_profile then save_profiles() end
|
|
|
|
|
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
if not no_errors then
|
|
|
|
|
error_msg = error_msg:gsub('"', '\\"')
|
|
|
|
|
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
|
|
|
|
|
end
|