mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-03 20:22:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			643 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			643 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{lib, ...}: let
 | 
						|
  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]
 | 
						|
    '';
 | 
						|
 | 
						|
    setupOpts = mkPluginSetupOption "vim-illuminate" {
 | 
						|
      filetypes_denylist = mkOption {
 | 
						|
        type = listOf str;
 | 
						|
        default = ["dirvish" "fugitive" "help" "neo-tree" "notify" "NvimTree" "TelescopePrompt"];
 | 
						|
        description = "Filetypes to not illuminate, this overrides `filetypes_allowlist`";
 | 
						|
      };
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |