startup speed improvements
This commit is contained in:
parent
2f4d3c23dc
commit
910ffc0108
4 changed files with 43 additions and 12 deletions
3
init.lua
3
init.lua
|
@ -1,3 +1,5 @@
|
||||||
|
require("user.disable")
|
||||||
|
require("user.impatient")
|
||||||
require("user.options")
|
require("user.options")
|
||||||
require("user.keymaps")
|
require("user.keymaps")
|
||||||
require("user.plugins")
|
require("user.plugins")
|
||||||
|
@ -16,7 +18,6 @@ require("user.bufferline")
|
||||||
require("user.whitespace")
|
require("user.whitespace")
|
||||||
require("user.lualine")
|
require("user.lualine")
|
||||||
require("user.toggleterm")
|
require("user.toggleterm")
|
||||||
require("user.impatient")
|
|
||||||
require("user.indentline")
|
require("user.indentline")
|
||||||
require("user.alpha")
|
require("user.alpha")
|
||||||
require("user.whichkey")
|
require("user.whichkey")
|
||||||
|
|
|
@ -4,14 +4,13 @@ if not status_ok then
|
||||||
end
|
end
|
||||||
|
|
||||||
colorizer.setup({ "*" }, {
|
colorizer.setup({ "*" }, {
|
||||||
RGB = true, -- #RGB hex codes
|
RGB = true,
|
||||||
RRGGBB = true, -- #RRGGBB hex codes
|
RRGGBB = true,
|
||||||
names = false, -- "Name" codes like Blue oe blue
|
names = false,
|
||||||
RRGGBBAA = true, -- #RRGGBBAA hex codes
|
RRGGBBAA = true,
|
||||||
rgb_fn = true, -- CSS rgb() and rgba() functions
|
rgb_fn = true,
|
||||||
hsl_fn = true, -- CSS hsl() and hsla() functions
|
hsl_fn = true,
|
||||||
css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
|
css = false,
|
||||||
css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn
|
css_fn = false,
|
||||||
-- Available modes: foreground, background, virtualtext
|
mode = "background",
|
||||||
mode = "background", -- Set the display mode.)
|
|
||||||
})
|
})
|
||||||
|
|
25
lua/user/disable.lua
Normal file
25
lua/user/disable.lua
Normal 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
|
|
@ -32,6 +32,10 @@ packer.init({
|
||||||
return require("packer.util").float({ border = "rounded" })
|
return require("packer.util").float({ border = "rounded" })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
profile = {
|
||||||
|
enable = true,
|
||||||
|
threshold = 0,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
return packer.startup(function(use)
|
return packer.startup(function(use)
|
||||||
|
@ -112,8 +116,10 @@ return packer.startup(function(use)
|
||||||
-- Toggleterm
|
-- Toggleterm
|
||||||
use("akinsho/toggleterm.nvim")
|
use("akinsho/toggleterm.nvim")
|
||||||
|
|
||||||
-- Impatient
|
-- Speed
|
||||||
use("lewis6991/impatient.nvim")
|
use("lewis6991/impatient.nvim")
|
||||||
|
use("nathom/filetype.nvim")
|
||||||
|
use("dstein64/vim-startuptime")
|
||||||
|
|
||||||
-- Indent Line
|
-- Indent Line
|
||||||
use("lukas-reineke/indent-blankline.nvim")
|
use("lukas-reineke/indent-blankline.nvim")
|
||||||
|
|
Reference in a new issue