mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-26 09:20:08 +00:00 
			
		
		
		
	
					parent
					
						
							
								f9ee813a23
							
						
					
				
			
			
				commit
				
					
						6ec28999cb
					
				
			
		
					 1 changed files with 13 additions and 6 deletions
				
			
		|  | @ -57,14 +57,21 @@ | ||||||
|       signs = mkOption { |       signs = mkOption { | ||||||
|         type = diagnosticType; |         type = diagnosticType; | ||||||
|         default = false; |         default = false; | ||||||
|         example = { |         example = literalExpression '' | ||||||
|           signs.text = { |           signs.text = lib.generators.mkLuaInline ''' | ||||||
|             "vim.diagnostic.severity.ERROR" = " "; |             { | ||||||
|             "vim.diagnostic.severity.WARN" = " "; |               [vim.diagnostic.severity.ERROR] = " ", | ||||||
|           }; |               [vim.diagnostic.severity.WARN] = " ", | ||||||
|         }; |             } | ||||||
|  |           '''; | ||||||
|  |         ''; | ||||||
|         description = '' |         description = '' | ||||||
|           Use signs for diagnostics. See {command}`:help diagnostic-signs`. |           Use signs for diagnostics. See {command}`:help diagnostic-signs`. | ||||||
|  | 
 | ||||||
|  |           :::{.note} | ||||||
|  |           The code presented in that help section uses lua expressions as object keys which | ||||||
|  |           only translate well if you use `lib.generators.mkLuaInline` as in the example. | ||||||
|  |           ::: | ||||||
|         ''; |         ''; | ||||||
|       }; |       }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Laszlo Bacsi
				Laszlo Bacsi