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.
```bash
LazyStart 14.64ms
LazyDone 59.11ms (+44.48ms)
UIEnter 119.52ms (+60.41ms)
LazyStart 18.67ms
LazyDone 43.52ms (+24.85ms)
UIEnter 110.71ms (+67.19ms)
```
### Starting with an empty file
Around 40% of the plugins are lazy-loaded.
Around 50% of the plugins are lazy-loaded.
```bash
LazyStart 14.37ms
LazyDone 60.18ms (+45.81ms)
UIEnter 74.45ms (+14.27ms)
LazyStart 18.15ms
LazyDone 46.91ms (+28.76ms)
UIEnter 59.08ms (+12.17ms)
```
## Plugins

View file

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

View file

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