mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 19:12:38 +00:00 
			
		
		
		
	languages: coerce server type to list for compat
This commit is contained in:
		
					parent
					
						
							
								76c031bbda
							
						
					
				
			
			
				commit
				
					
						9407a3e1c6
					
				
			
		
					 34 changed files with 98 additions and 103 deletions
				
			
		|  | @ -8,12 +8,10 @@ | |||
|   inherit (lib.modules) mkIf mkMerge; | ||||
|   inherit (lib.meta) getExe; | ||||
|   inherit (lib.trivial) boolToString; | ||||
|   inherit (lib.lists) isList; | ||||
|   inherit (lib.options) mkEnableOption mkOption; | ||||
|   inherit (lib.types) enum either listOf package nullOr str bool; | ||||
|   inherit (lib.types) enum package nullOr str bool; | ||||
|   inherit (lib.strings) optionalString; | ||||
|   inherit (lib.nvim.lua) expToLua; | ||||
|   inherit (lib.nvim.types) mkGrammarOption; | ||||
|   inherit (lib.nvim.types) mkGrammarOption singleOrListOf; | ||||
|   inherit (lib.nvim.dag) entryAfter; | ||||
|   inherit (lib.nvim.attrsets) mapListToAttrs; | ||||
| 
 | ||||
|  | @ -54,7 +52,7 @@ in { | |||
|     lsp = { | ||||
|       enable = mkEnableOption "Dart LSP support" // {default = config.vim.lsp.enable;}; | ||||
|       servers = mkOption { | ||||
|         type = listOf (enum (attrNames servers)); | ||||
|         type = singleOrListOf (enum (attrNames servers)); | ||||
|         default = defaultServers; | ||||
|         description = "Dart LSP server to use"; | ||||
|       }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ching Pei Yang
				Ching Pei Yang