Branching out modules, similar to how kickstart-modular does it

This commit is contained in:
Imbus 2024-07-21 22:02:50 +02:00
parent ed72526d26
commit 231e2a3cff
4 changed files with 134 additions and 128 deletions

8
lua/lazy-bootstrap.lua Normal file
View file

@ -0,0 +1,8 @@
-- [[ Install `lazy.nvim` plugin manager ]]
-- 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.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)