refactor: clean up user example files to be easier to follow
This commit is contained in:
		@@ -1,17 +1,19 @@
 | 
			
		||||
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
 | 
			
		||||
if not vim.loop.fs_stat(lazypath) then
 | 
			
		||||
  vim.g.astronvim_first_install = true
 | 
			
		||||
  vim.g.astronvim_first_install = true -- lets AstroNvim know that this is an initial installation
 | 
			
		||||
  -- stylua: ignore
 | 
			
		||||
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
 | 
			
		||||
end
 | 
			
		||||
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
 | 
			
		||||
 | 
			
		||||
-- TODO: set to true on release
 | 
			
		||||
local USE_STABLE = false -- use stable releases of AstroNvim
 | 
			
		||||
-- Whether or not to use stable releases of AstroNvim
 | 
			
		||||
local USE_STABLE = false
 | 
			
		||||
 | 
			
		||||
local spec = {
 | 
			
		||||
  -- TODO: remove branch v4 on release
 | 
			
		||||
  { "AstroNvim/AstroNvim", branch = "v4", version = USE_STABLE and "*" or nil, import = "astronvim.plugins" },
 | 
			
		||||
  -- { "AstroNvim/AstroNvim", version = "3.x", import = "astronvim.plugins" }, -- use this line to only get updates for v3 and avoid the breaking changes if v4 is released
 | 
			
		||||
}
 | 
			
		||||
if USE_STABLE then table.insert(spec, { import = "astronvim.lazy_snapshot" }) end -- pin plugins to known stable versions/commits
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,10 +1,11 @@
 | 
			
		||||
-- Options are automatically loaded before lazy.nvim startup
 | 
			
		||||
-- Default options that are always set: https://github.com/AstroNvim/AstroNvim/blob/main/lua/astronvim/options.lua
 | 
			
		||||
-- Add any additional options here
 | 
			
		||||
vim.opt.relativenumber = true -- sets vim.opt.relativenumber
 | 
			
		||||
vim.opt.number = true -- sets vim.opt.number
 | 
			
		||||
vim.opt.spell = false -- sets vim.opt.spell
 | 
			
		||||
vim.opt.signcolumn = "auto" -- sets vim.opt.signcolumn to auto
 | 
			
		||||
vim.opt.wrap = false -- sets vim.opt.wrap
 | 
			
		||||
 | 
			
		||||
vim.g.mapleader = " " -- sets vim.g.mapleader
 | 
			
		||||
-- vim.opt.relativenumber = true -- sets vim.opt.relativenumber
 | 
			
		||||
-- vim.opt.number = true -- sets vim.opt.number
 | 
			
		||||
-- vim.opt.spell = false -- sets vim.opt.spell
 | 
			
		||||
-- vim.opt.signcolumn = "auto" -- sets vim.opt.signcolumn to auto
 | 
			
		||||
-- vim.opt.wrap = false -- sets vim.opt.wrap
 | 
			
		||||
 | 
			
		||||
-- vim.g.mapleader = " " -- sets vim.g.mapleader
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user