mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	wrapper/rc: set vim.options and vim.globals to freeform submodules
		
	This commit is contained in:
		
					parent
					
						
							
								0e45c70fb9
							
						
					
				
			
			
				commit
				
					
						864ee05f57
					
				
			
		
					 2 changed files with 8 additions and 5 deletions
				
			
		|  | @ -200,8 +200,6 @@ in { | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     globals = pushDownDefault { |     globals = pushDownDefault { | ||||||
|       mapleader = cfg.leaderKey; |  | ||||||
|       maplocalleader = cfg.leaderKey; |  | ||||||
|       editorconfig = cfg.enableEditorconfig; |       editorconfig = cfg.enableEditorconfig; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
| }: let | }: let | ||||||
|   inherit (lib.options) mkOption mkEnableOption literalMD literalExpression; |   inherit (lib.options) mkOption mkEnableOption literalMD literalExpression; | ||||||
|   inherit (lib.strings) optionalString; |   inherit (lib.strings) optionalString; | ||||||
|   inherit (lib.types) str attrs lines listOf either path submodule anything; |   inherit (lib.types) str attrsOf lines listOf either path submodule anything; | ||||||
|   inherit (lib.nvim.types) dagOf; |   inherit (lib.nvim.types) dagOf; | ||||||
|   inherit (lib.nvim.lua) listToLuaTable; |   inherit (lib.nvim.lua) listToLuaTable; | ||||||
| 
 | 
 | ||||||
|  | @ -102,7 +102,7 @@ in { | ||||||
|     globals = mkOption { |     globals = mkOption { | ||||||
|       default = {}; |       default = {}; | ||||||
|       type = submodule { |       type = submodule { | ||||||
|         freeformType = anything; |         freeformType = attrsOf anything; | ||||||
|         options = { |         options = { | ||||||
|           mapleader = mkOption { |           mapleader = mkOption { | ||||||
|             type = str; |             type = str; | ||||||
|  | @ -116,6 +116,7 @@ in { | ||||||
|           }; |           }; | ||||||
|         }; |         }; | ||||||
|       }; |       }; | ||||||
|  | 
 | ||||||
|       example = {"some_variable" = 42;}; |       example = {"some_variable" = 42;}; | ||||||
|       description = '' |       description = '' | ||||||
|         An attribute set containing global variable values |         An attribute set containing global variable values | ||||||
|  | @ -133,8 +134,12 @@ in { | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     options = mkOption { |     options = mkOption { | ||||||
|       type = attrs; |  | ||||||
|       default = {}; |       default = {}; | ||||||
|  |       type = submodule { | ||||||
|  |         freeformType = attrsOf anything; | ||||||
|  |         options = {}; | ||||||
|  |       }; | ||||||
|  | 
 | ||||||
|       example = {visualbell = true;}; |       example = {visualbell = true;}; | ||||||
|       description = '' |       description = '' | ||||||
|         An attribute set containing vim options to be set |         An attribute set containing vim options to be set | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue