mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-26 09:20:08 +00:00 
			
		
		
		
	notifications/nvim-notify: add render opt; update trace symbol
This commit is contained in:
		
					parent
					
						
							
								bba0ba92a6
							
						
					
				
			
			
				commit
				
					
						a56aa7b6e2
					
				
			
		
					 1 changed files with 10 additions and 8 deletions
				
			
		|  | @ -1,12 +1,8 @@ | |||
| { | ||||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: let | ||||
| {lib, ...}: let | ||||
|   inherit (lib.options) mkEnableOption mkOption; | ||||
|   inherit (lib.modules) mkRenamedOptionModule; | ||||
|   inherit (lib.types) int str enum attrsOf; | ||||
|   inherit (lib.nvim.types) mkPluginSetupOption; | ||||
|   inherit (lib.types) int str enum attrsOf either; | ||||
|   inherit (lib.nvim.types) mkPluginSetupOption luaInline; | ||||
| in { | ||||
|   imports = let | ||||
|     renamedSetupOpt = name: | ||||
|  | @ -25,6 +21,12 @@ in { | |||
|     enable = mkEnableOption "nvim-notify notifications"; | ||||
| 
 | ||||
|     setupOpts = mkPluginSetupOption "nvim-notify" { | ||||
|       render = mkOption { | ||||
|         type = either (enum ["default" "minimal" "simple" "compact" "wrapped-compact"]) luaInline; | ||||
|         default = "compact"; | ||||
|         description = "Custom rendering method to be used for displaying notifications"; | ||||
|       }; | ||||
| 
 | ||||
|       stages = mkOption { | ||||
|         type = enum ["fade_in_slide_out" "fade_in" "slide_out" "none"]; | ||||
|         default = "fade_in_slide_out"; | ||||
|  | @ -57,7 +59,7 @@ in { | |||
|           WARN = ""; | ||||
|           INFO = ""; | ||||
|           DEBUG = ""; | ||||
|           TRACE = ""; | ||||
|           TRACE = ""; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue