mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	utility/fzf-lua: add profile option, fix name
This commit is contained in:
		
					parent
					
						
							
								775963dd9d
							
						
					
				
			
			
				commit
				
					
						ba55a1b54a
					
				
			
		
					 2 changed files with 20 additions and 2 deletions
				
			
		|  | @ -11,6 +11,6 @@ in { | |||
|     package = "fzf-lua"; | ||||
|     cmd = ["FzfLua"]; | ||||
|     setupModule = "fzf-lua"; | ||||
|     inherit (cfg) setupOpts; | ||||
|     setupOpts = cfg.setupOpts // {"@1" = cfg.profile;}; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
|  | @ -3,17 +3,35 @@ | |||
|   lib, | ||||
|   ... | ||||
| }: let | ||||
|   inherit (lib.types) nullOr enum; | ||||
|   inherit (lib.options) mkEnableOption mkOption; | ||||
|   inherit (lib.nvim.types) mkPluginSetupOption borderType; | ||||
| in { | ||||
|   options.vim.fzf-lua = { | ||||
|     enable = mkEnableOption "fzf-lua"; | ||||
|     setupOpts = mkPluginSetupOption "mini.ai" { | ||||
|     setupOpts = mkPluginSetupOption "fzf-lua" { | ||||
|       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 ot use"; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 LilleAila
				LilleAila