Archived
0
0
Fork 0

startup speed improvements

This commit is contained in:
Daryl Ronningen 2022-07-17 23:52:18 -07:00
parent 2f4d3c23dc
commit 910ffc0108
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
4 changed files with 43 additions and 12 deletions

View file

@ -1,3 +1,5 @@
require("user.disable")
require("user.impatient")
require("user.options")
require("user.keymaps")
require("user.plugins")
@ -16,7 +18,6 @@ require("user.bufferline")
require("user.whitespace")
require("user.lualine")
require("user.toggleterm")
require("user.impatient")
require("user.indentline")
require("user.alpha")
require("user.whichkey")

View file

@ -4,14 +4,13 @@ if not status_ok then
end
colorizer.setup({ "*" }, {
RGB = true, -- #RGB hex codes
RRGGBB = true, -- #RRGGBB hex codes
names = false, -- "Name" codes like Blue oe blue
RRGGBBAA = true, -- #RRGGBBAA hex codes
rgb_fn = true, -- CSS rgb() and rgba() functions
hsl_fn = true, -- CSS hsl() and hsla() functions
css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn
-- Available modes: foreground, background, virtualtext
mode = "background", -- Set the display mode.)
RGB = true,
RRGGBB = true,
names = false,
RRGGBBAA = true,
rgb_fn = true,
hsl_fn = true,
css = false,
css_fn = false,
mode = "background",
})

25
lua/user/disable.lua Normal file
View file

@ -0,0 +1,25 @@
-- Disable some builtin vim plugins
local disabled_built_ins = {
"2html_plugin",
"getscript",
"getscriptPlugin",
"gzip",
"logipat",
"netrw",
"netrwPlugin",
"netrwSettings",
"netrwFileHandlers",
"matchit",
"matchparen",
"tar",
"tarPlugin",
"rrhelper",
"vimball",
"vimballPlugin",
"zip",
"zipPlugin",
}
for _, plugin in pairs(disabled_built_ins) do
vim.g["loaded_" .. plugin] = 1
end

View file

@ -32,6 +32,10 @@ packer.init({
return require("packer.util").float({ border = "rounded" })
end,
},
profile = {
enable = true,
threshold = 0,
},
})
return packer.startup(function(use)
@ -112,8 +116,10 @@ return packer.startup(function(use)
-- Toggleterm
use("akinsho/toggleterm.nvim")
-- Impatient
-- Speed
use("lewis6991/impatient.nvim")
use("nathom/filetype.nvim")
use("dstein64/vim-startuptime")
-- Indent Line
use("lukas-reineke/indent-blankline.nvim")