Enable experimental Lua loader to improve startup time

This commit is contained in:
2026-02-02 20:54:27 +00:00
parent 9a6765df45
commit 00b5d44396

View File

@@ -1,3 +1,5 @@
vim.loader.enable()
vim.g.mapleader = ' ' vim.g.mapleader = ' '
vim.g.maplocalleader = ' ' vim.g.maplocalleader = ' '
@@ -11,7 +13,7 @@ end
pcall(function() require('local') end) pcall(function() require('local') end)
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then if not vim.uv.fs_stat(lazypath) then
vim.fn.system({ 'git', 'clone', '--filter=blob:none', vim.fn.system({ 'git', 'clone', '--filter=blob:none',
'https://github.com/folke/lazy.nvim.git', '--branch=stable', lazypath }) 'https://github.com/folke/lazy.nvim.git', '--branch=stable', lazypath })
end end