Refactors init.lua into multiple files

This commit is contained in:
Marcelo Canaparro 2023-09-16 19:01:38 +01:00
parent c77f43657a
commit 0ce2cf531b
13 changed files with 661 additions and 30 deletions

17
lua/plugin-manager.lua Normal file
View file

@ -0,0 +1,17 @@
-- Install package manager
-- https://github.com/folke/lazy.nvim
-- `:help lazy.nvim.txt` for more info
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,
}
end
vim.opt.rtp:prepend(lazypath)
require('lazy').setup("pluginlist")