Updated nvim to init Lazy properly

This commit is contained in:
2024-01-25 11:56:17 -06:00
parent 49ce904902
commit 1dd98b1313
2 changed files with 26 additions and 14 deletions
+13 -3
View File
@@ -1,7 +1,17 @@
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
-- Lazy
-- Only required if you have packer configured as `opt`
vim.cmd [[packadd 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,
})
end
vim.opt.rtp:prepend(lazypath)
return require('lazy').setup({
-- Packer can manage itself