mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-29 18:33:53 +00:00 
			
		
		
		
	utility/telescope: document missing layout options
This commit is contained in:
		
					parent
					
						
							
								95f2638ba5
							
						
					
				
			
			
				commit
				
					
						7644edfe2b
					
				
			
		
					 1 changed files with 10 additions and 13 deletions
				
			
		|  | @ -95,42 +95,42 @@ | ||||||
|           options = { |           options = { | ||||||
|             horizontal = { |             horizontal = { | ||||||
|               prompt_position = mkOption { |               prompt_position = mkOption { | ||||||
|                 description = ""; |                 type = enum ["top" "bottom"]; | ||||||
|                 type = str; |  | ||||||
|                 default = "top"; |                 default = "top"; | ||||||
|  |                 description = "Where to place prompt window"; | ||||||
|               }; |               }; | ||||||
| 
 | 
 | ||||||
|               preview_width = mkOption { |               preview_width = mkOption { | ||||||
|                 description = ""; |  | ||||||
|                 type = float; |                 type = float; | ||||||
|                 default = 0.55; |                 default = 0.55; | ||||||
|  |                 description = "Change the width of Telescope's preview window"; | ||||||
|               }; |               }; | ||||||
|             }; |             }; | ||||||
| 
 | 
 | ||||||
|             vertical = { |             vertical = { | ||||||
|               mirror = mkOption { |               mirror = mkOption { | ||||||
|                 description = ""; |  | ||||||
|                 type = bool; |                 type = bool; | ||||||
|                 default = false; |                 default = false; | ||||||
|  |                 description = "Flip the location of the results/prompt and preview windows"; | ||||||
|               }; |               }; | ||||||
|             }; |             }; | ||||||
| 
 | 
 | ||||||
|             width = mkOption { |             width = mkOption { | ||||||
|               description = ""; |  | ||||||
|               type = float; |               type = float; | ||||||
|               default = 0.8; |               default = 0.8; | ||||||
|  |               description = "How wide to make Telescope's entire layout"; | ||||||
|             }; |             }; | ||||||
| 
 | 
 | ||||||
|             height = mkOption { |             height = mkOption { | ||||||
|               description = ""; |  | ||||||
|               type = float; |               type = float; | ||||||
|               default = 0.8; |               default = 0.8; | ||||||
|  |               description = "How tall to make Telescope's entire layout"; | ||||||
|             }; |             }; | ||||||
| 
 | 
 | ||||||
|             preview_cutoff = mkOption { |             preview_cutoff = mkOption { | ||||||
|               description = ""; |  | ||||||
|               type = int; |               type = int; | ||||||
|               default = 120; |               default = 120; | ||||||
|  |               description = "When lines are less than this value, the preview will be disabled"; | ||||||
|             }; |             }; | ||||||
|           }; |           }; | ||||||
|         }; |         }; | ||||||
|  | @ -145,13 +145,10 @@ | ||||||
|       file_ignore_patterns = mkOption { |       file_ignore_patterns = mkOption { | ||||||
|         type = listOf str; |         type = listOf str; | ||||||
|         default = ["node_modules" "%.git/" "dist/" "build/" "target/" "result/"]; |         default = ["node_modules" "%.git/" "dist/" "build/" "target/" "result/"]; | ||||||
|  |         description = "File patterns to omit from Telescope results"; | ||||||
|       }; |       }; | ||||||
| 
 | 
 | ||||||
|       color_devicons = mkOption { |       color_devicons = mkEnableOption "colored devicons"; | ||||||
|         type = bool; |  | ||||||
|         default = true; |  | ||||||
|         description = "Boolean if devicons should be enabled or not."; |  | ||||||
|       }; |  | ||||||
| 
 | 
 | ||||||
|       path_display = mkOption { |       path_display = mkOption { | ||||||
|         type = listOf (enum ["hidden" "tail" "absolute" "smart" "shorten" "truncate"]); |         type = listOf (enum ["hidden" "tail" "absolute" "smart" "shorten" "truncate"]); | ||||||
|  | @ -168,7 +165,7 @@ | ||||||
|       winblend = mkOption { |       winblend = mkOption { | ||||||
|         type = int; |         type = int; | ||||||
|         default = 0; |         default = 0; | ||||||
|         description = "pseudo-transparency of keymap hints floating window"; |         description = "Pseudo-transparency of keymap hints floating window"; | ||||||
|       }; |       }; | ||||||
| 
 | 
 | ||||||
|       extensions = mkOption { |       extensions = mkOption { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue