change config to multifile

This commit is contained in:
Miguel Da Silva 2024-09-10 18:30:02 +02:00
parent d106be5558
commit bc23503b46
6 changed files with 974 additions and 1064 deletions

10
lua/lazy_bootstrap.lua Normal file
View file

@ -0,0 +1,10 @@
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = 'https://github.com/folke/lazy.nvim.git'
local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath }
if vim.v.shell_error ~= 0 then
error('Error cloning lazy.nvim:\n' .. out)
end
end ---@diagnostic disable-next-line: undefined-field
vim.opt.rtp:prepend(lazypath)