mirror of
				https://github.com/folke/lazy.nvim.git
				synced 2025-11-04 00:11:06 +00:00 
			
		
		
		
	fix: use vim.api.nvim_exec_autocmds instead of vim.cmd[[do]] to prevent weird vim.notify behavior
		
	This commit is contained in:
		
					parent
					
						
							
								81017b99e7
							
						
					
				
			
			
				commit
				
					
						b73312aa32
					
				
			
		
					 8 changed files with 15 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -21,7 +21,7 @@ M.C = nil
 | 
			
		|||
 | 
			
		||||
function M.on_ui_enter()
 | 
			
		||||
  M._stats.startuptime = M.track("UIEnter")
 | 
			
		||||
  vim.cmd([[do User LazyVimStarted]])
 | 
			
		||||
  vim.api.nvim_exec_autocmds("User", { pattern = "LazyVimStarted", modeline = false })
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
function M.track(event)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue