Skip to content

Commit

Permalink
fix: resintalled some plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
felicandalc committed Oct 18, 2022
1 parent 38dbe28 commit 766e0e9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 22 deletions.
2 changes: 1 addition & 1 deletion lua/nn/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ return packer.startup(function(use)
-- Treesitter
use({
"nvim-treesitter/nvim-treesitter",
run = ":TSUpdate",
run = function() require('nvim-treesitter.install').update({ with_sync = true }) end,
})
use("nvim-treesitter/playground")
use("p00f/nvim-ts-rainbow")
Expand Down
1 change: 0 additions & 1 deletion lua/nn/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ configs.setup {
enable = true, -- false will disable the whole extension
disable = { "" }, -- list of language that will be disabled
additional_vim_regex_highlighting = true,

},
indent = { enable = true, disable = { "yaml" } },
rainbow = {
Expand Down
52 changes: 32 additions & 20 deletions plugin/packer_compiled.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,26 @@ 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
_G._packer = _G._packer or {}
_G._packer.inside_compile = true

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
else
time = function(chunk, start) 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
Expand All @@ -38,8 +41,10 @@ local function save_profiles(threshold)
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
end
end
if threshold then
table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)')
end

_G._packer = _G._packer or {}
_G._packer.profile_output = results
end

Expand Down Expand Up @@ -304,14 +309,21 @@ _G.packer_plugins = {
}

time([[Defining packer_plugins]], false)
-- Config for: neogen
time([[Config for neogen]], true)
try_loadstring("\27LJ\2\n8\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\vneogen\frequire\0", "config", "neogen")
time([[Config for neogen]], false)
-- Config for: octo.nvim
time([[Config for octo.nvim]], true)
try_loadstring("\27LJ\2\n2\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\tocto\frequire\0", "config", "octo.nvim")
time([[Config for octo.nvim]], false)
-- Config for: neogen
time([[Config for neogen]], true)
try_loadstring("\27LJ\2\n8\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\vneogen\frequire\0", "config", "neogen")
time([[Config for neogen]], false)

_G._packer.inside_compile = false
if _G._packer.needs_bufread == true then
vim.cmd("doautocmd BufRead")
end
_G._packer.needs_bufread = false

if should_profile then save_profiles() end

end)
Expand Down

0 comments on commit 766e0e9

Please sign in to comment.