mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	autocmds: ensure augroups are set up before autocmds
This commit is contained in:
		
					parent
					
						
							
								3f30cef69f
							
						
					
				
			
			
				commit
				
					
						d26b9dc896
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -9,7 +9,7 @@ | |||
|   inherit (lib.types) nullOr submodule listOf str bool; | ||||
|   inherit (lib.nvim.types) luaInline; | ||||
|   inherit (lib.nvim.lua) toLuaObject; | ||||
|   inherit (lib.nvim.dag) entryAfter; | ||||
|   inherit (lib.nvim.dag) entryAfter entryBetween; | ||||
| 
 | ||||
|   autocommandType = submodule { | ||||
|     options = { | ||||
|  | @ -144,7 +144,7 @@ in { | |||
|       enabledAutogroups = filter (au: au.enable) cfg.augroups; | ||||
|     in { | ||||
|       luaConfigRC = { | ||||
|         augroups = entryAfter ["pluginConfigs"] (optionalString (enabledAutogroups != []) '' | ||||
|         augroups = entryBetween ["autocmds"] ["pluginConfigs"] (optionalString (enabledAutogroups != []) '' | ||||
|           local nvf_autogroups = {} | ||||
|           for _, group in ipairs(${toLuaObject enabledAutogroups}) do | ||||
|             if group.name then | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ching Pei Yang
				Ching Pei Yang