Enable experimental Lua loader to improve startup time
This commit is contained in:
4
init.lua
4
init.lua
@@ -1,3 +1,5 @@
|
||||
vim.loader.enable()
|
||||
|
||||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ' '
|
||||
|
||||
@@ -11,7 +13,7 @@ end
|
||||
pcall(function() require('local') end)
|
||||
|
||||
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',
|
||||
'https://github.com/folke/lazy.nvim.git', '--branch=stable', lazypath })
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user