split up init.lua

This commit is contained in:
Thomas Ruoff
2024-03-26 22:03:40 +01:00
parent 62cea2a4ec
commit a50a611e02
23 changed files with 680 additions and 1376 deletions

10
lua/initlazy.lua Normal file
View File

@@ -0,0 +1,10 @@
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
end ---@diagnostic disable-next-line: undefined-field
vim.opt.rtp:prepend(lazypath)
require('lazy').setup {
{ import = 'plugins' },
}