nvim: refactor bootstrap
This commit is contained in:
		
							parent
							
								
									87c7aa23fe
								
							
						
					
					
						commit
						bfded8cd9f
					
				
					 1 changed files with 3 additions and 7 deletions
				
			
		| 
						 | 
					@ -1,12 +1,8 @@
 | 
				
			||||||
-- [[ plugins bootstrap ]]
 | 
					-- [[ plugins bootstrap ]]
 | 
				
			||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
 | 
					local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
 | 
				
			||||||
if not vim.loop.fs_stat(lazypath) then
 | 
					local lazyurl = "https://github.com/folke/lazy.nvim.git"
 | 
				
			||||||
    vim.fn.system {
 | 
					local lazycmd = { "git", "clone", "--filter=blob:none", "--branch=stable", lazyurl, lazypath }
 | 
				
			||||||
        "git", "clone", "--filter=blob:none",
 | 
					if not vim.loop.fs_stat(lazypath) then vim.fn.system(lazycmd) end
 | 
				
			||||||
        "https://github.com/folke/lazy.nvim.git",
 | 
					 | 
				
			||||||
        "--branch=stable", lazypath
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
end
 | 
					 | 
				
			||||||
vim.opt.rtp:prepend(lazypath)
 | 
					vim.opt.rtp:prepend(lazypath)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
--[[ plugins list ]]
 | 
					--[[ plugins list ]]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue