mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	feat: import barbecue-nvim configs into the flake
This commit is contained in:
		
					parent
					
						
							
								5a961f18a1
							
						
					
				
			
			
				commit
				
					
						7aec23513c
					
				
			
		
					 4 changed files with 37 additions and 0 deletions
				
			
		|  | @ -69,6 +69,8 @@ with lib; let | |||
|     "comment-nvim" | ||||
|     "kommentary" | ||||
|     "mind-nvim" | ||||
|     "nvim-navic" | ||||
|     "barbecue-nvim" | ||||
|   ]; | ||||
|   # You can either use the name of the plugin or a package. | ||||
|   pluginsType = with types; listOf (nullOr (either (enum availablePlugins) package)); | ||||
|  |  | |||
|  | @ -30,6 +30,7 @@ | |||
|     ./assistant | ||||
|     ./session | ||||
|     ./comments | ||||
|     ./winbar | ||||
|   ]; | ||||
| 
 | ||||
|   pkgsModule = {config, ...}: { | ||||
|  |  | |||
							
								
								
									
										29
									
								
								modules/winbar/barbecue/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								modules/winbar/barbecue/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,29 @@ | |||
| { | ||||
|   pkgs, | ||||
|   config, | ||||
|   lib, | ||||
|   ... | ||||
| }: | ||||
| with lib; | ||||
| with builtins; let | ||||
|   cfg = config.vim.winbar.barbecue; | ||||
| in { | ||||
|   options.vim.winbar.barbecue = { | ||||
|     enable = mkEnableOption "Enable barbecue.nvim"; | ||||
|   }; | ||||
| 
 | ||||
|   config = (mkIf cfg.enable) { | ||||
|     vim.startPlugins = | ||||
|       [ | ||||
|         "barbecue-nvim" | ||||
|         "nvim-navic" | ||||
|       ] | ||||
|       ++ optional (config.vim.visuals.nvimWebDevicons.enable) "nvim-web-devicons"; | ||||
| 
 | ||||
|     vim.luaConfigRC.barbecue-nvim = nvim.dag.entryAnywhere '' | ||||
|       config = function() | ||||
|         require("barbecue").setup() | ||||
|       end, | ||||
|     ''; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										5
									
								
								modules/winbar/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								modules/winbar/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| _: { | ||||
|   imports = [ | ||||
|     ./barbecue | ||||
|   ]; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 NotAShelf
				NotAShelf