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