mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-03 20:22:21 +00:00 
			
		
		
		
	lazy: enabled option accepts luaInline instead of str
Makes inline Lua enabled options evaluate to Lua instead of string literals.
This commit is contained in:
		
					parent
					
						
							
								c7a4e99837
							
						
					
				
			
			
				commit
				
					
						f6cfc3ab4b
					
				
			
		
					 2 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
					@ -523,3 +523,7 @@
 | 
				
			||||||
[diced](https://github.com/diced):
 | 
					[diced](https://github.com/diced):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Fixed `typescript` treesitter grammar not being included by default.
 | 
					- Fixed `typescript` treesitter grammar not being included by default.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[derethil](https://github.com/derethil):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Fix `vim.lazy.plugins.<name>.enabled` Lua evaluation.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
{lib, ...}: let
 | 
					{lib, ...}: let
 | 
				
			||||||
  inherit (lib.options) mkOption mkEnableOption;
 | 
					  inherit (lib.options) mkOption mkEnableOption;
 | 
				
			||||||
  inherit (lib.types) enum listOf submodule nullOr str bool int attrsOf anything either oneOf lines;
 | 
					  inherit (lib.types) enum listOf submodule nullOr str bool int attrsOf anything either oneOf lines;
 | 
				
			||||||
  inherit (lib.nvim.types) pluginType;
 | 
					  inherit (lib.nvim.types) pluginType luaInline;
 | 
				
			||||||
  inherit (lib.nvim.config) mkBool;
 | 
					  inherit (lib.nvim.config) mkBool;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  lznKeysSpec = submodule {
 | 
					  lznKeysSpec = submodule {
 | 
				
			||||||
| 
						 | 
					@ -98,7 +98,7 @@
 | 
				
			||||||
      # lz.n options
 | 
					      # lz.n options
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      enabled = mkOption {
 | 
					      enabled = mkOption {
 | 
				
			||||||
        type = nullOr (either bool str);
 | 
					        type = nullOr (either bool luaInline);
 | 
				
			||||||
        default = null;
 | 
					        default = null;
 | 
				
			||||||
        description = "When false, or if the lua function returns false, this plugin will not be included in the spec";
 | 
					        description = "When false, or if the lua function returns false, this plugin will not be included in the spec";
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue