fix: slightly improve startup times

This commit is contained in:
Oliver Ladner 2025-04-02 14:32:59 +02:00
commit b6f577d9ff
3 changed files with 11 additions and 7 deletions

View file

@ -36,19 +36,19 @@ macOS 15 on Neovim 0.11.0.
Around 15% of the plugins are lazy-loaded. Around 15% of the plugins are lazy-loaded.
```bash ```bash
LazyStart 14.64ms LazyStart 18.67ms
LazyDone 59.11ms (+44.48ms) LazyDone 43.52ms (+24.85ms)
UIEnter 119.52ms (+60.41ms) UIEnter 110.71ms (+67.19ms)
``` ```
### Starting with an empty file ### Starting with an empty file
Around 40% of the plugins are lazy-loaded. Around 50% of the plugins are lazy-loaded.
```bash ```bash
LazyStart 14.37ms LazyStart 18.15ms
LazyDone 60.18ms (+45.81ms) LazyDone 46.91ms (+28.76ms)
UIEnter 74.45ms (+14.27ms) UIEnter 59.08ms (+12.17ms)
``` ```
## Plugins ## Plugins

View file

@ -2,6 +2,8 @@
-- https://github.com/uga-rosa/ccc.nvim -- https://github.com/uga-rosa/ccc.nvim
return { return {
"uga-rosa/ccc.nvim", "uga-rosa/ccc.nvim",
lazy = true,
event = { "BufReadPre", "BufNewFile" },
config = function() config = function()
local ccc = require("ccc") local ccc = require("ccc")
local mapping = ccc.mapping local mapping = ccc.mapping

View file

@ -1,5 +1,7 @@
return { return {
"saghen/blink.cmp", "saghen/blink.cmp",
lazy = true,
event = { "BufReadPre", "BufNewFile" },
-- optional: provides snippets for the snippet source -- optional: provides snippets for the snippet source
dependencies = { "rafamadriz/friendly-snippets" }, dependencies = { "rafamadriz/friendly-snippets" },