mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	feat: add fidget.nvim to visual plugins
This commit is contained in:
		
					parent
					
						
							
								ea7bd48a22
							
						
					
				
			
			
				commit
				
					
						db7aa94161
					
				
			
		
					 4 changed files with 40 additions and 0 deletions
				
			
		|  | @ -47,6 +47,7 @@ inputs: let | ||||||
|         scrollBar.enable = true; |         scrollBar.enable = true; | ||||||
|         smoothScroll.enable = true; |         smoothScroll.enable = true; | ||||||
|         cellularAutomaton.enable = true; |         cellularAutomaton.enable = true; | ||||||
|  |         fidget-nvim.enable = true; | ||||||
|         lspkind.enable = true; |         lspkind.enable = true; | ||||||
|         indentBlankline = { |         indentBlankline = { | ||||||
|           enable = true; |           enable = true; | ||||||
|  |  | ||||||
|  | @ -69,6 +69,7 @@ with lib; let | ||||||
|     "comment-nvim" |     "comment-nvim" | ||||||
|     "kommentary" |     "kommentary" | ||||||
|     "mind-nvim" |     "mind-nvim" | ||||||
|  |     "fidget-nvim" | ||||||
|   ]; |   ]; | ||||||
|   # You can either use the name of the plugin or a package. |   # You can either use the name of the plugin or a package. | ||||||
|   pluginsType = with types; listOf (nullOr (either (enum availablePlugins) package)); |   pluginsType = with types; listOf (nullOr (either (enum availablePlugins) package)); | ||||||
|  |  | ||||||
|  | @ -44,6 +44,11 @@ in { | ||||||
|         then "cellular-automaton" |         then "cellular-automaton" | ||||||
|         else null |         else null | ||||||
|       ) |       ) | ||||||
|  |       ( | ||||||
|  |         if cfg.fidget-nvim.enable | ||||||
|  |         then "fidget-nvim" | ||||||
|  |         else null | ||||||
|  |       ) | ||||||
|     ]; |     ]; | ||||||
| 
 | 
 | ||||||
|     vim.luaConfigRC.visuals = nvim.dag.entryAnywhere '' |     vim.luaConfigRC.visuals = nvim.dag.entryAnywhere '' | ||||||
|  | @ -135,6 +140,18 @@ in { | ||||||
|         '' |         '' | ||||||
|         else "" |         else "" | ||||||
|       } |       } | ||||||
|  |       ${ | ||||||
|  |         if cfg.fidget-nvim.enable | ||||||
|  |         then '' | ||||||
|  |           require"fidget".setup{ | ||||||
|  |             align = { | ||||||
|  |               bottom = ${boolToString cfg.fidget-nvim.align.bottom}, | ||||||
|  |               right = ${boolToString cfg.fidget-nvim.align.right}, | ||||||
|  |             } | ||||||
|  |           } | ||||||
|  |         '' | ||||||
|  |         else "" | ||||||
|  |       } | ||||||
|     ''; |     ''; | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -45,6 +45,27 @@ in { | ||||||
|       default = false; |       default = false; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|  |     fidget-nvim = { | ||||||
|  |       enable = mkOption { | ||||||
|  |         type = types.bool; | ||||||
|  |         description = "enable nvim LSP UI element [fidget-nvim]"; | ||||||
|  |         default = false; | ||||||
|  |       }; | ||||||
|  |       align = { | ||||||
|  |         bottom = mkOption { | ||||||
|  |           type = types.bool; | ||||||
|  |           description = "align to bottom"; | ||||||
|  |           default = true; | ||||||
|  |         }; | ||||||
|  | 
 | ||||||
|  |         right = mkOption { | ||||||
|  |           type = types.bool; | ||||||
|  |           description = "align to right"; | ||||||
|  |           default = true; | ||||||
|  |         }; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|     cursorWordline = { |     cursorWordline = { | ||||||
|       enable = mkOption { |       enable = mkOption { | ||||||
|         type = types.bool; |         type = types.bool; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 NotAShelf
				NotAShelf