mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	ui/illuminate: move to setupOpts format
This commit is contained in:
		
					parent
					
						
							
								a4ef5e0f8c
							
						
					
				
			
			
				commit
				
					
						a3f650e114
					
				
			
		
					 2 changed files with 23 additions and 13 deletions
				
			
		|  | @ -1,7 +1,19 @@ | |||
| {lib, ...}: let | ||||
|   inherit (lib.options) mkEnableOption; | ||||
|   inherit (lib.options) mkOption mkEnableOption; | ||||
|   inherit (lib.types) listOf str; | ||||
|   inherit (lib.nvim.types) mkPluginSetupOption; | ||||
| in { | ||||
|   options.vim.ui.illuminate = { | ||||
|     enable = mkEnableOption "automatically highlight other uses of the word under the cursor [vim-illuminate]"; | ||||
|     enable = mkEnableOption '' | ||||
|       automatically highlight other uses of the word under the cursor [vim-illuminate] | ||||
|     ''; | ||||
| 
 | ||||
|     setupOpts = mkPluginSetupOption "vim-illuminate" { | ||||
|       filetypes_denylist = mkOption { | ||||
|         type = listOf str; | ||||
|         default = ["dirvish" "fugitive" "NvimTree" "TelescopePrompt"]; | ||||
|         description = "Filetypes to not illuminate, this overrides `filetypes_allowlist`"; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue