mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			43 lines
		
	
	
	
		
			1,018 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
	
		
			1,018 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   config,
 | |
|   lib,
 | |
|   pkgs,
 | |
|   ...
 | |
| }: let
 | |
|   inherit (lib.types) enum str;
 | |
|   inherit (lib.options) mkEnableOption mkOption;
 | |
|   inherit (lib.nvim.types) mkPluginSetupOption borderType;
 | |
| in {
 | |
|   options.vim.fzf-lua = {
 | |
|     enable = mkEnableOption "fzf-lua";
 | |
|     setupOpts = mkPluginSetupOption "fzf-lua" {
 | |
|       fzf_bin = mkOption {
 | |
|         type = str;
 | |
|         default = "${lib.getExe pkgs.fzf}";
 | |
|         description = "Path to fzf executable";
 | |
|       };
 | |
|       winopts.border = mkOption {
 | |
|         type = borderType;
 | |
|         default = config.vim.ui.borders.globalStyle;
 | |
|         description = "Border type for the fzf-lua picker window";
 | |
|       };
 | |
|     };
 | |
|     profile = mkOption {
 | |
|       type = enum [
 | |
|         "default"
 | |
|         "default-title"
 | |
|         "fzf-native"
 | |
|         "fzf-tmux"
 | |
|         "fzf-vim"
 | |
|         "max-perf"
 | |
|         "telescope"
 | |
|         "skim"
 | |
|         "borderless"
 | |
|         "borderless-full"
 | |
|         "border-fused"
 | |
|       ];
 | |
|       default = "default";
 | |
|       description = "The configuration profile to use";
 | |
|     };
 | |
|   };
 | |
| }
 | 
