mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-12-23 15:49:40 +01:00
343 lines
16 KiB
Lua
343 lines
16 KiB
Lua
-- 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 = "/home/sahin/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/sahin/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/sahin/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/sahin/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
|
||
local install_cpath_pattern = "/home/sahin/.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))
|
||
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 = {
|
||
["AutoSave.nvim"] = {
|
||
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\rautoSave\fzenmode\frequire\0" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/AutoSave.nvim"
|
||
},
|
||
LuaSnip = {
|
||
config = { "\27LJ\2\nA\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\rsnippets\21compe-completion\frequire\0" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/LuaSnip",
|
||
wants = { "friendly-snippets" }
|
||
},
|
||
["TrueZen.nvim"] = {
|
||
commands = { "TZAtaraxis", "TZMinimalist", "TZFocus" },
|
||
config = { "\27LJ\2\n6\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\vconfig\fzenmode\frequire\0" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/TrueZen.nvim"
|
||
},
|
||
chadtree = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/chadtree"
|
||
},
|
||
["dashboard-nvim"] = {
|
||
commands = { "Dashboard", "DashboardNewFile", "DashboardJumpMarks", "SessionLoad", "SessionSave" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/dashboard-nvim"
|
||
},
|
||
["friendly-snippets"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/friendly-snippets"
|
||
},
|
||
["galaxyline.nvim"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/galaxyline.nvim"
|
||
},
|
||
["gitsigns.nvim"] = {
|
||
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\vconfig\18gitsigns-nvim\frequire\0" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/gitsigns.nvim"
|
||
},
|
||
gruvbox = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/gruvbox"
|
||
},
|
||
["indent-blankline.nvim"] = {
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/indent-blankline.nvim"
|
||
},
|
||
["lspkind-nvim"] = {
|
||
config = { "\27LJ\2\n4\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\tinit\flspkind\frequire\0" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/lspkind-nvim"
|
||
},
|
||
["lspsaga.nvim"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/lspsaga.nvim"
|
||
},
|
||
neoformat = {
|
||
commands = { "Neoformat" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/neoformat"
|
||
},
|
||
["neoscroll.nvim"] = {
|
||
config = { "\27LJ\2\n7\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\14neoscroll\frequire\0" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/neoscroll.nvim"
|
||
},
|
||
["nvim-autopairs"] = {
|
||
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\19nvim-autopairs\frequire\0" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/nvim-autopairs"
|
||
},
|
||
["nvim-base16.lua"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/nvim-base16.lua"
|
||
},
|
||
["nvim-bufferline.lua"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/nvim-bufferline.lua"
|
||
},
|
||
["nvim-colorizer.lua"] = {
|
||
config = { "\27LJ\2\ni\0\0\3\0\6\0\n6\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\0016\0\3\0009\0\4\0'\2\5\0B\0\2\1K\0\1\0\30ColorizerReloadAllBuffers\bcmd\bvim\nsetup\14colorizer\frequire\0" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/nvim-colorizer.lua"
|
||
},
|
||
["nvim-comment"] = {
|
||
commands = { "CommentToggle" },
|
||
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\17nvim_comment\frequire\0" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/nvim-comment"
|
||
},
|
||
["nvim-compe"] = {
|
||
after_files = { "/home/sahin/.local/share/nvim/site/pack/packer/opt/nvim-compe/after/plugin/compe.vim" },
|
||
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\vconfig\21compe-completion\frequire\0" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/nvim-compe",
|
||
wants = { "LuaSnip" }
|
||
},
|
||
["nvim-jdtls"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/nvim-jdtls"
|
||
},
|
||
["nvim-lspconfig"] = {
|
||
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\vconfig\19nvim-lspconfig\frequire\0" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/nvim-lspconfig"
|
||
},
|
||
["nvim-lspinstall"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/nvim-lspinstall"
|
||
},
|
||
["nvim-tree.lua"] = {
|
||
commands = { "NvimTreeToggle" },
|
||
config = { "\27LJ\2\n7\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\vconfig\rnvimTree\frequire\0" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/nvim-tree.lua"
|
||
},
|
||
["nvim-treesitter"] = {
|
||
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\vconfig\20treesitter-nvim\frequire\0" },
|
||
loaded = false,
|
||
needs_bufread = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/nvim-treesitter"
|
||
},
|
||
["nvim-web-devicons"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/nvim-web-devicons"
|
||
},
|
||
["packer.nvim"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/packer.nvim"
|
||
},
|
||
["plenary.nvim"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/plenary.nvim"
|
||
},
|
||
["popup.nvim"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/popup.nvim"
|
||
},
|
||
["startuptime.vim"] = {
|
||
commands = { "StartupTime" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/startuptime.vim"
|
||
},
|
||
["telescope-fzf-native.nvim"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim"
|
||
},
|
||
["telescope-media-files.nvim"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/telescope-media-files.nvim"
|
||
},
|
||
["telescope.nvim"] = {
|
||
commands = { "Telescope" },
|
||
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\vconfig\19telescope-nvim\frequire\0" },
|
||
loaded = false,
|
||
needs_bufread = false,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/telescope.nvim"
|
||
},
|
||
["vim-abolish"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/vim-abolish"
|
||
},
|
||
["vim-fugitive"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/vim-fugitive"
|
||
},
|
||
["vim-matchup"] = {
|
||
after_files = { "/home/sahin/.local/share/nvim/site/pack/packer/opt/vim-matchup/after/plugin/matchit.vim" },
|
||
loaded = false,
|
||
needs_bufread = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/opt/vim-matchup"
|
||
},
|
||
["vim-repeat"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/vim-repeat"
|
||
},
|
||
["vim-surround"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/vim-surround"
|
||
},
|
||
["vim-tmux-navigator"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator"
|
||
},
|
||
["vim-unimpaired"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/vim-unimpaired"
|
||
},
|
||
["which-key.nvim"] = {
|
||
loaded = true,
|
||
path = "/home/sahin/.local/share/nvim/site/pack/packer/start/which-key.nvim"
|
||
}
|
||
}
|
||
|
||
time([[Defining packer_plugins]], false)
|
||
-- Setup for: indent-blankline.nvim
|
||
time([[Setup for indent-blankline.nvim]], true)
|
||
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\14blankline\15misc-utils\frequire\0", "setup", "indent-blankline.nvim")
|
||
time([[Setup for indent-blankline.nvim]], false)
|
||
-- Setup for: dashboard-nvim
|
||
time([[Setup for dashboard-nvim]], true)
|
||
try_loadstring("\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\vconfig\14dashboard\frequire\0", "setup", "dashboard-nvim")
|
||
time([[Setup for dashboard-nvim]], false)
|
||
-- Conditional loads
|
||
time("Condition for { 'AutoSave.nvim' }", true)
|
||
if
|
||
try_loadstring("\27LJ\2\n;\0\0\1\0\3\0\t6\0\0\0009\0\1\0009\0\2\0\n\0\2\0X\0\2<EFBFBD>+\0\1\0X\1\1<EFBFBD>+\0\2\0L\0\2\0\14auto_save\6g\bvim\0", "condition", '{ "AutoSave.nvim" }')
|
||
then
|
||
time("Condition for { 'AutoSave.nvim' }", false)
|
||
time([[packadd for AutoSave.nvim]], true)
|
||
vim.cmd [[packadd AutoSave.nvim]]
|
||
time([[packadd for AutoSave.nvim]], false)
|
||
-- Config for: AutoSave.nvim
|
||
time([[Config for AutoSave.nvim]], true)
|
||
try_loadstring("\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\rautoSave\fzenmode\frequire\0", "config", "AutoSave.nvim")
|
||
time([[Config for AutoSave.nvim]], false)
|
||
else
|
||
time("Condition for { 'AutoSave.nvim' }", false)
|
||
end
|
||
|
||
-- Command lazy-loads
|
||
time([[Defining lazy-load commands]], true)
|
||
vim.cmd [[command! -nargs=* -range -bang -complete=file NvimTreeToggle lua require("packer.load")({'nvim-tree.lua'}, { cmd = "NvimTreeToggle", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
|
||
vim.cmd [[command! -nargs=* -range -bang -complete=file CommentToggle lua require("packer.load")({'nvim-comment'}, { cmd = "CommentToggle", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
|
||
vim.cmd [[command! -nargs=* -range -bang -complete=file Telescope lua require("packer.load")({'telescope.nvim'}, { cmd = "Telescope", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
|
||
vim.cmd [[command! -nargs=* -range -bang -complete=file Dashboard lua require("packer.load")({'dashboard-nvim'}, { cmd = "Dashboard", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
|
||
vim.cmd [[command! -nargs=* -range -bang -complete=file DashboardNewFile lua require("packer.load")({'dashboard-nvim'}, { cmd = "DashboardNewFile", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
|
||
vim.cmd [[command! -nargs=* -range -bang -complete=file DashboardJumpMarks lua require("packer.load")({'dashboard-nvim'}, { cmd = "DashboardJumpMarks", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
|
||
vim.cmd [[command! -nargs=* -range -bang -complete=file SessionLoad lua require("packer.load")({'dashboard-nvim'}, { cmd = "SessionLoad", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
|
||
vim.cmd [[command! -nargs=* -range -bang -complete=file SessionSave lua require("packer.load")({'dashboard-nvim'}, { cmd = "SessionSave", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
|
||
vim.cmd [[command! -nargs=* -range -bang -complete=file TZFocus lua require("packer.load")({'TrueZen.nvim'}, { cmd = "TZFocus", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
|
||
vim.cmd [[command! -nargs=* -range -bang -complete=file TZMinimalist lua require("packer.load")({'TrueZen.nvim'}, { cmd = "TZMinimalist", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
|
||
vim.cmd [[command! -nargs=* -range -bang -complete=file StartupTime lua require("packer.load")({'startuptime.vim'}, { cmd = "StartupTime", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
|
||
vim.cmd [[command! -nargs=* -range -bang -complete=file TZAtaraxis lua require("packer.load")({'TrueZen.nvim'}, { cmd = "TZAtaraxis", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
|
||
vim.cmd [[command! -nargs=* -range -bang -complete=file Neoformat lua require("packer.load")({'neoformat'}, { cmd = "Neoformat", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args> }, _G.packer_plugins)]]
|
||
time([[Defining lazy-load commands]], false)
|
||
|
||
vim.cmd [[augroup packer_load_aucmds]]
|
||
vim.cmd [[au!]]
|
||
-- Event lazy-loads
|
||
time([[Defining lazy-load event autocommands]], true)
|
||
vim.cmd [[au InsertEnter * ++once lua require("packer.load")({'nvim-compe', 'nvim-autopairs'}, { event = "InsertEnter *" }, _G.packer_plugins)]]
|
||
vim.cmd [[au BufRead * ++once lua require("packer.load")({'gitsigns.nvim', 'indent-blankline.nvim', 'nvim-colorizer.lua', 'nvim-lspconfig', 'nvim-treesitter', 'lspkind-nvim'}, { event = "BufRead *" }, _G.packer_plugins)]]
|
||
vim.cmd [[au CursorMoved * ++once lua require("packer.load")({'vim-matchup'}, { event = "CursorMoved *" }, _G.packer_plugins)]]
|
||
vim.cmd [[au WinScrolled * ++once lua require("packer.load")({'neoscroll.nvim'}, { event = "WinScrolled *" }, _G.packer_plugins)]]
|
||
vim.cmd [[au InsertCharPre * ++once lua require("packer.load")({'LuaSnip'}, { event = "InsertCharPre *" }, _G.packer_plugins)]]
|
||
time([[Defining lazy-load event autocommands]], false)
|
||
vim.cmd("augroup END")
|
||
if should_profile then save_profiles() end
|
||
|
||
end)
|
||
|
||
if not no_errors then
|
||
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
|
||
end
|