diff --git a/nvim/m-housh/init.lua b/nvim/m-housh/init.lua index 8f93a42..75306f4 100755 --- a/nvim/m-housh/init.lua +++ b/nvim/m-housh/init.lua @@ -1,6 +1,20 @@ -- Leader needs to be set before loading plugins vim.g.mapleader = " " vim.g.maplocalleader = " " + +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) + -- Auto commands require('user.autocmd')