Shorten init.lua

This commit is contained in:
Kenneth Benzie 2024-03-11 20:21:54 +00:00
parent 3353b099be
commit 23ac458935

View File

@ -2,24 +2,14 @@ require('settings')
require('mappings') require('mappings')
require('netrw') require('netrw')
require('autocmds') require('autocmds')
require('build')
require('statusline') require('statusline')
require('build')
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.loop.fs_stat(lazypath) then
vim.fn.system({ vim.fn.system({ 'git', 'clone', '--filter=blob:none',
"git", 'https://github.com/folke/lazy.nvim.git', '--branch=stable', lazypath })
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
require('lazy').setup('plugins', { require('lazy').setup('plugins', { change_detection = { enabled = false } })
change_detection = {
enabled = false,
},
})